Struct core::iter::ScanStable [-]  [+] [src]

pub struct Scan<I, St, F> {
    pub state: St,
    // some fields omitted
}

An iterator to maintain state while iterating another iterator

Fields

state

The current internal state to be passed to the closure next.

Trait Implementations

impl<B, I: Iterator, St, F> Iterator for Scan<I, St, F> where F: FnMut(&mut St, Item) -> Option<B>

type Item = B

fn next(&mut self) -> Option<B>

fn size_hint(&self) -> (usize, Option<usize>)

Derived Implementations

impl<I: Clone, St: Clone, F: Clone> Clone for Scan<I, St, F>

fn clone(&self) -> Scan<I, St, F>

fn clone_from(&mut self, source: &Self)