Struct Interleave
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Interleave<I, J> { /* private fields */ }
An iterator adaptor that alternates elements from two iterators until both run out.
This iterator is fused.
See .interleave() for more information.
Trait Implementations
impl<I, J> FusedIterator for Interleave<I, J>
where
I: Iterator,
J: Iterator<Item = I::Item>,
impl<I, J> Iterator for Interleave<I, J>
where
I: Iterator,
J: Iterator<Item = I::Item>,
type Item = <I as Iterator>::Item;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)fn fold<B, F>(self, init: B, f: F) -> B where F: FnMut(B, Self::Item) -> B,
impl<I: Clone, J: Clone> Clone for Interleave<I, J>
fn clone(&self) -> Self
impl<I: Debug, J: Debug> Debug for Interleave<I, J>
fn fmt(&self, f: &mut Formatter<'_>) -> Result