Struct std::iter::ScanUnstable [-]  [+] [src]

pub struct Scan<A, B, 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<A, B, I, St, F> Clone for Scan<A, B, I, St, F>

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

fn clone_from(&mut self, &Scan<A, B, I, St, F>)

impl<A, B, I, St, F> Iterator<B> for Scan<A, B, I, St, F>

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

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

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