method iter.iter
An iterator is its own iter() (so it satisfies Iterable<T>).
Example:
fn main() io {
let it = [1, 2, 3].iter()
print("{it.iter().count()}")
}Output
3
pub(api) move fn iter() -> iter<T>Since. 1.0.0-beta
Returns
iter<T>
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/iter.oxl:106