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

pub struct Inspect<'a, A, T> {
    // some fields omitted
}

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

Trait Implementations

impl<'a, A, T: ExactSize<A>> ExactSize<A> for Inspect<'a, A, T>

fn rposition(&mut self, |A| -> bool) -> Option<uint>

fn len(&self) -> uint

impl<'a, A, T: Iterator<A>> Iterator<A> for Inspect<'a, A, T>

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

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

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

fn chain<U: Iterator<A>>(self, U) -> Chain<Inspect<'a, A, T>, U>

fn zip<B, U: Iterator<B>>(self, U) -> Zip<Inspect<'a, A, T>, U>

fn map<B>(self, |A| -> B) -> Map<'r, A, B, Inspect<'a, A, T>>

fn filter(self, |&A| -> bool) -> Filter<'r, A, Inspect<'a, A, T>>

fn filter_map<B>(self, |A| -> Option<B>) -> FilterMap<'r, A, B, Inspect<'a, A, T>>

fn enumerate(self) -> Enumerate<Inspect<'a, A, T>>

fn peekable(self) -> Peekable<A, Inspect<'a, A, T>>

fn skip_while(self, |&A| -> bool) -> SkipWhile<'r, A, Inspect<'a, A, T>>

fn take_while(self, |&A| -> bool) -> TakeWhile<'r, A, Inspect<'a, A, T>>

fn skip(self, uint) -> Skip<Inspect<'a, A, T>>

fn take(self, uint) -> Take<Inspect<'a, A, T>>

fn scan<St, B>(self, St, |&mut St, A| -> Option<B>) -> Scan<'r, A, B, Inspect<'a, A, T>, St>

fn flat_map<B, U: Iterator<B>>(self, |A| -> U) -> FlatMap<'r, A, Inspect<'a, A, T>, U>

fn fuse(self) -> Fuse<Inspect<'a, A, T>>

fn inspect(self, |&A|) -> Inspect<'r, A, Inspect<'a, A, T>>

fn by_ref(&'r mut self) -> ByRef<'r, Inspect<'a, A, T>>

fn collect<B: FromIterator<A>>(&mut self) -> B

fn nth(&mut self, uint) -> Option<A>

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

fn fold<B>(&mut self, B, |B, A| -> B) -> B

fn count(&mut self) -> uint

fn all(&mut self, |A| -> bool) -> bool

fn any(&mut self, |A| -> bool) -> bool

fn find(&mut self, |&A| -> bool) -> Option<A>

fn position(&mut self, |A| -> bool) -> Option<uint>

fn max_by<B: Ord>(&mut self, |&A| -> B) -> Option<A>

fn min_by<B: Ord>(&mut self, |&A| -> B) -> Option<A>

impl<'a, A, T: DoubleEndedIterator<A>> DoubleEndedIterator<A> for Inspect<'a, A, T>

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

fn rev(self) -> Rev<Inspect<'a, A, T>>

impl<'a, A, T: RandomAccessIterator<A>> RandomAccessIterator<A> for Inspect<'a, A, T>

fn indexable(&self) -> uint

fn idx(&mut self, index: uint) -> Option<A>