Is there in Rust a Trait which supplies the iter()
method? I only found the trait IntoIterator
, which supplies into_iter()
.
Just to be clear here: I do not want the Iterator
trait, which supplies next()
, but a trait which supplies iter()
.
[ sidenote: Sometimes I'm very confused by the Rust libs. Iterator
supplies next()
, but IntoIterator
supplies into_iter()
(not supplying next()
and for convention with moving), while IntoIter
is a struct, that implements the Iterator
trait (moving values). ]