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

#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Cycle<I> {
    // some fields omitted
}

An iterator that repeats endlessly

Trait Implementations

impl<I> Iterator for Cycle<I> where I: Clone, I: Iterator

type Item = <I as Iterator>::Item

fn next(&mut self) -> Option<<I as Iterator>::Item>

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

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

impl<I> RandomAccessIterator for Cycle<I> where I: Clone, I: RandomAccessIterator

fn indexable(&self) -> usize

fn idx(&mut self, index: usize) -> Option<<I as Iterator>::Item>

Derived Implementations

impl<I> Clone for Cycle<I> where I: Clone

fn clone(&self) -> Cycle<I>

fn clone_from(&mut self, &Cycle<I>)