Trait zip_fill::ZipFill [−][src]
pub trait ZipFill: Iterator { fn zip_longest<R>(
self,
other: R,
fill_value: Self::Item
) -> ZipLongest<Self, R::IntoIter>ⓘ
where
Self::Item: Clone,
R: IntoIterator<Item = Self::Item>,
Self: Sized, { ... } }
Expand description
Provide additional methods to Iterator
Provided methods
fn zip_longest<R>(
self,
other: R,
fill_value: Self::Item
) -> ZipLongest<Self, R::IntoIter>ⓘ where
Self::Item: Clone,
R: IntoIterator<Item = Self::Item>,
Self: Sized,
fn zip_longest<R>(
self,
other: R,
fill_value: Self::Item
) -> ZipLongest<Self, R::IntoIter>ⓘ where
Self::Item: Clone,
R: IntoIterator<Item = Self::Item>,
Self: Sized,
Zip two iterators extending the shorter one with the provided fill_value
.
Arguments
other
- second iteratorfill_value
- default value