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

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

An iterator that repeats an element endlessly

Trait Implementations

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

type Item = A

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

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

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

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

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

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

fn indexable(&self) -> usize

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

Derived Implementations

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

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

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