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

pub struct Counter<A> {
    // some fields omitted
}

An infinite iterator starting at start and advancing by step with each iteration

Trait Implementations

impl<A: Add<A, A> + Clone> Iterator<A> for Counter<A>

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<Counter<A>, U>

fn zip<B, U: Iterator<B>>(self, U) -> Zip<Counter<A>, U>

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

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

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

fn enumerate(self) -> Enumerate<Counter<A>>

fn peekable(self) -> Peekable<A, Counter<A>>

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

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

fn skip(self, uint) -> Skip<Counter<A>>

fn take(self, uint) -> Take<Counter<A>>

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

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

fn fuse(self) -> Fuse<Counter<A>>

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

fn by_ref(&'r mut self) -> ByRef<'r, Counter<A>>

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>

Derived Implementations

impl<A: Clone> Clone for Counter<A>

fn clone(&self) -> Counter<A>

fn clone_from(&mut self, &Counter<A>)