Struct std::iter::Counter[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<A: Add<A, A> + Clone>(&mut self) -> Option<A>

fn size_hint<A: Add<A, A> + Clone>(&self) -> (uint, Option<uint>)

fn size_hint<A: Add<A, A> + Clone>(&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|: 'r -> B) -> Map<'r, A, B, Counter<A>>

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

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

fn enumerate<A: Add<A, A> + Clone>(self) -> Enumerate<Counter<A>>

fn peekable<A: Add<A, A> + Clone>(self) -> Peekable<A, Counter<A>>

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

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

fn skip<A: Add<A, A> + Clone>(self, uint) -> Skip<Counter<A>>

fn take<A: Add<A, A> + Clone>(self, uint) -> Take<Counter<A>>

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

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

fn fuse<A: Add<A, A> + Clone>(self) -> Fuse<Counter<A>>

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

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

fn advance<A: Add<A, A> + Clone>(&mut self, |A| -> bool) -> bool

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

fn nth<A: Add<A, A> + Clone>(&mut self, uint) -> Option<A>

fn last<A: Add<A, A> + Clone>(&mut self) -> Option<A>

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

fn count<A: Add<A, A> + Clone>(&mut self) -> uint

fn all<A: Add<A, A> + Clone>(&mut self, |A| -> bool) -> bool

fn any<A: Add<A, A> + Clone>(&mut self, |A| -> bool) -> bool

fn find<A: Add<A, A> + Clone>(&mut self, |&A| -> bool) -> Option<A>

fn position<A: Add<A, A> + Clone>(&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<A: Clone>(&self) -> Counter<A>

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