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

pub struct TakeWhile<A, I, P> where I: Iterator<Item=A>, P: FnMut(&A) -> bool {
    // some fields omitted
}

An iterator that only accepts elements while predicate is true

Trait Implementations

impl<A, I, P> Clone for TakeWhile<A, I, P> where I: Clone + Iterator<Item=A>, P: Clone + FnMut(&A) -> bool

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

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

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

type Item = A

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

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