Trait zip_fill::ZipFill[][src]

pub trait ZipFill: Iterator {
    fn zip_longest<R>(
        self,
        other: R,
        fill_value: Self::Item
    ) -> ZipLongest<Self, R::IntoIter>

Notable traits for ZipLongest<L, R>

impl<L, R> Iterator for ZipLongest<L, R> where
    L::Item: Clone,
    L: Iterator,
    R: Iterator<Item = L::Item>, 
type Item = (L::Item, L::Item);

    where
        Self::Item: Clone,
        R: IntoIterator<Item = Self::Item>,
        Self: Sized
, { ... } }
Expand description

Provide additional methods to Iterator

Provided methods

Zip two iterators extending the shorter one with the provided fill_value.

Arguments

  • other - second iterator
  • fill_value - default value

Implementors