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) -> ZipLongest<T, U>
impl<T: Debug, U: Debug> Debug for ZipLongest<T, U>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<T, U> Freeze for ZipLongest<T, U>
where
Fuse<T>: Freeze,
Fuse<U>: Freeze,
impl<T, U> RefUnwindSafe for ZipLongest<T, U>
where
Fuse<T>: RefUnwindSafe,
Fuse<U>: RefUnwindSafe,
impl<T, U> Send for ZipLongest<T, U>
where
Fuse<T>: Send,
Fuse<U>: Send,
impl<T, U> Sync for ZipLongest<T, U>
where
Fuse<T>: Sync,
Fuse<U>: Sync,
impl<T, U> Unpin for ZipLongest<T, U>
where
Fuse<T>: Unpin,
Fuse<U>: Unpin,
impl<T, U> UnsafeUnpin for ZipLongest<T, U>
where
Fuse<T>: UnsafeUnpin,
Fuse<U>: UnsafeUnpin,
impl<T, U> UnwindSafe for ZipLongest<T, U>
where
Fuse<T>: UnwindSafe,
Fuse<U>: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for ZipLongest<T, U>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for ZipLongest<T, U>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ZipLongest<T, U>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ZipLongest<T, U>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ZipLongest<T, U>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ZipLongest<T, U>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for ZipLongest<T, U>
impl<T> Itertools for ZipLongest<T, U>
where
T: Iterator + ?Sized,
impl<T> ToOwned for ZipLongest<T, U>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for ZipLongest<T, U>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ZipLongest<T, U>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ZipLongest<T, U>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>