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

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

An iterator that repeats an element endlessly

Methods

impl<A: Clone> Repeat<A>

fn new(elt: A) -> Repeat<A>

Create a new Repeat that endlessly repeats the element elt.

Trait Implementations

impl<A: Clone> Iterator<A> for Repeat<A>

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

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

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

impl<A: Clone> DoubleEndedIterator<A> for Repeat<A>

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

impl<A: Clone> RandomAccessIterator<A> for Repeat<A>

fn indexable(&self) -> uint

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

Derived Implementations

impl<A: Clone> Clone for Repeat<A>

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

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