Struct InterleaveShortest
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct InterleaveShortest<I, J>
where
I: Iterator,
J: Iterator<Item = I::Item>, { /* private fields */ }
An iterator adaptor that alternates elements from the two iterators until one of them runs out.
This iterator is fused.
See .interleave_shortest()
for more information.
Trait Implementations
impl<I, J> Clone for InterleaveShortest<I, J>
where
I: Iterator + Clone,
J: Iterator<Item = I::Item> + Clone,
fn clone(&self) -> Self
impl<I, J> Debug for InterleaveShortest<I, J>
where
I: Iterator + Debug,
J: Iterator<Item = I::Item> + Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I, J> FusedIterator for InterleaveShortest<I, J>
where
I: FusedIterator,
J: FusedIterator<Item = I::Item>,
impl<I, J> Iterator for InterleaveShortest<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,