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

pub struct Take<T> {
    // some fields omitted
}

An iterator which only iterates over the first n iterations of iter.

Trait Implementations

impl<A, T: Iterator<A>> Iterator<A> for Take<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<Take<T>, U>

fn zip<B, U: Iterator<B>>(self, U) -> Zip<Take<T>, U>

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

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

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

fn enumerate(self) -> Enumerate<Take<T>>

fn peekable(self) -> Peekable<A, Take<T>>

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

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

fn skip(self, uint) -> Skip<Take<T>>

fn take(self, uint) -> Take<Take<T>>

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

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

fn fuse(self) -> Fuse<Take<T>>

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

fn by_ref(&'r mut self) -> ByRef<'r, Take<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, T: RandomAccessIterator<A>> RandomAccessIterator<A> for Take<T>

fn indexable(&self) -> uint

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

Derived Implementations

impl<T: Clone> Clone for Take<T>

fn clone(&self) -> Take<T>

fn clone_from(&mut self, &Take<T>)