Struct core::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: Iterator, P> Iterator for Filter<I, P> where P: FnMut(&Item) -> bool

type Item = Item

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

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

impl<I: DoubleEndedIterator, P> DoubleEndedIterator for Filter<I, P> where P: FnMut(&Item) -> bool

fn next_back(&mut self) -> Option<Item>

Derived Implementations

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

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

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