Struct Tee
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Tee<I>
where
I: Iterator, { /* private fields */ }
One half of an iterator pair where both return the same elements.
See .tee() for more information.
Trait Implementations
impl<I> Debug for Tee<I>
where
I: Iterator + Debug,
I::Item: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I> ExactSizeIterator for Tee<I>
where
I: ExactSizeIterator,
I::Item: Clone,
impl<I> Iterator for Tee<I>
where
I: Iterator,
I::Item: Clone,
type Item = <I as Iterator>::Item;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)