Function zip_fill::zip_longest[][src]

pub fn zip_longest<L, R>(
    a: L,
    b: R,
    fill_value: L::Item
) -> ZipLongest<L::IntoIter, 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
    L::Item: Clone,
    L: IntoIterator,
    R: IntoIterator<Item = L::Item>, 
Expand description

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

Arguments

  • a - first iterator
  • b - second iterator
  • fill_value - default value