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

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

An iterator that calls a function with a reference to each element before yielding it.

Trait Implementations

impl<I, F> ExactSizeIterator for Inspect<I, F> where I: ExactSizeIterator, F: FnMut(&<I as Iterator>::Item), <F as FnMut(&<I as Iterator>::Item)>::Output == ()

fn len(&self) -> usize

impl<I, F> Iterator for Inspect<I, F> where I: Iterator, F: FnMut(&<I as Iterator>::Item), <F as FnMut(&<I as Iterator>::Item)>::Output == ()

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, F> DoubleEndedIterator for Inspect<I, F> where I: DoubleEndedIterator, F: FnMut(&<I as Iterator>::Item), <F as FnMut(&<I as Iterator>::Item)>::Output == ()

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

impl<I, F> RandomAccessIterator for Inspect<I, F> where I: RandomAccessIterator, F: FnMut(&<I as Iterator>::Item), <F as FnMut(&<I as Iterator>::Item)>::Output == ()

fn indexable(&self) -> usize

fn idx(&mut self, index: usize) -> Option<<I as Iterator>::Item>

Derived Implementations

impl<I, F> Clone for Inspect<I, F> where I: Clone, F: Clone

fn clone(&self) -> Inspect<I, F>

fn clone_from(&mut self, &Inspect<I, F>)