Why Vec's API isn't bigger than it's iter?

· Users Rust Lang · Aug. 23, 2026, 1:52 p.m.
Summary
This post discusses why the API for the length of a Vec in Rust is more fundamental and straightforward than that for finding the maximum value. It highlights the conceptual distinctions between len() and max() methods, suggesting that len() is a direct property of Vec while max() is derived from its iterator, making a case for why len() is a primitive method.