Struct std::iter::RepeatExperimental [-]  [+] [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>)

fn chain<U: Iterator<A>>(self, U) -> Chain<Repeat<A>, U>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

fn by_ref(&'r mut self) -> ByRef<'r, Repeat<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>

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

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

fn rev(self) -> Rev<Repeat<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>)