Join Nostr
2026-03-31 12:57:33 UTC

Grégoire Locqueville on Nostr: What's the conceptual difference between `Iterator` and `IntoIterator`? Like for ...

What's the conceptual difference between `Iterator` and `IntoIterator`?

Like for instance, `Vec` implements `IntoIterator`, which means it may be converted to a type that implements `Iterator`. But what stopped the people who implemented `IntoIterator` for `Vec` to have it directly implement `Iterator`?

#RustLang