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

#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct TakeWhile<I, P> {
    // some fields omitted
}

An iterator that only accepts elements while predicate is true

Trait Implementations

impl<I, P> Iterator for TakeWhile<I, P> where I: Iterator, P: FnMut(&<I as Iterator>::Item), <P as FnMut(&<I as Iterator>::Item)>::Output == bool

type Item = <I as Iterator>::Item

fn next(&mut self) -> Option<<I as Iterator>::Item>

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

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

Derived Implementations

impl<I, P> Clone for TakeWhile<I, P> where I: Clone, P: Clone

fn clone(&self) -> TakeWhile<I, P>

fn clone_from(&mut self, &TakeWhile<I, P>)