Struct ZipLongest
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct ZipLongest<T, U> { /* private fields */ }
An iterator which iterates two other iterators simultaneously
and wraps the elements in EitherOrBoth.
This iterator is fused.
See .zip_longest() for more information.
Trait Implementations
impl<T, U> DoubleEndedIterator for ZipLongest<T, U>
where
T: DoubleEndedIterator + ExactSizeIterator,
U: DoubleEndedIterator + ExactSizeIterator,
fn next_back(&mut self) -> Option<Self::Item>fn rfold<B, F>(self, init: B, f: F) -> B where F: FnMut(B, Self::Item) -> B,
impl<T, U> ExactSizeIterator for ZipLongest<T, U>
where
T: ExactSizeIterator,
U: ExactSizeIterator,
impl<T, U> FusedIterator for ZipLongest<T, U>
where
T: Iterator,
U: Iterator,
impl<T, U> Iterator for ZipLongest<T, U>
where
T: Iterator,
U: Iterator,
type Item = EitherOrBoth<<T as Iterator>::Item, <U 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 Self: Sized, F: FnMut(B, Self::Item) -> B,
impl<T: Clone, U: Clone> Clone for ZipLongest<T, U>
fn clone(&self) -> Self
impl<T: Debug, U: Debug> Debug for ZipLongest<T, U>
fn fmt(&self, f: &mut Formatter<'_>) -> Result