Trait grabbag::iter::TeeIterator [] [src]

pub trait TeeIterator<E>: Iterator<Item=E> + Sized {
    fn tee(self) -> (Tee<E, Self>, Tee<E, Self>) { ... }
}

a  →  a, a

Provided Methods

fn tee(self) -> (Tee<E, Self>, Tee<E, Self>)

Creates a pair of iterators that will yield the same sequence of values.

The element type must implement Clone.

Implementors