Lyricdev
GitHub

struct CycleIter

pub struct CycleIter<I :: [Iterator, Clone]> :: [Iterator]

Conforms to Iterator.

Yields the values of an iterator over and over; made by it.cycle().

Each round walks a fresh clone of the original iterator. An empty iterator yields nothing.

Methods

pub mut fn next(): ?I.Item throws I.Error