Struct std::iter::CounterUnstable [-] [+] [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> Iterator for Counter<A> where A: Add<A>, A: Clone, <A as Add<A>>::Output == A

type Item = A

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

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

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

Derived Implementations

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

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

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