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

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

An iterator that filters the elements of iter with predicate

Trait Implementations

impl<I, P> Iterator for Filter<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>)

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

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

Derived Implementations

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

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

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