Closed
Description
http://doc.rust-lang.org/core/iter/trait.IntoIterator.html
I think we should mention somewhere in the docs for IntoIterator
that implementing this trait allows one to write:
let my_vec = vec![1, 10, 100];
for i in my_vec { ... }
instead of
let my_vec = vec![1, 10, 100];
for i in my_vec.iter() { ... }
Metadata
Metadata
Assignees
Labels
No labels