std::iter::Iterator

Trait std::iter::Iterator

pub trait Iterator {
    type Item;
    fn next(&mut self) -> Option<Self::Item>;

    fn size_hint(&self) -> (usize, Option<usize>) { ... }
    fn count(self) -> usize { ... }
    fn last(self) -> Option<Self::Item> { ... }
    fn nth(&mut self, n: usize) -> Option<Self::Item> { ... }
    fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>    where        U: IntoIterator<Item = Self::Item>,
    { ... }
    fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>    where        U: IntoIterator,
    { ... }
    fn map<B, F>(self, f: F) -> Map<Self, F>    where        F: FnMut(Self::Item) -> B,
    { ... }
    fn filter<P>(self, predicate: P) -> Filter<Self, P>    where        P: FnMut(&Self::Item) -> bool,
    { ... }
    fn