AsyncItertools

Trait AsyncItertools 

Source
pub trait AsyncItertools: Stream {
    // Provided method
    fn zip_longest<U>(self, other: U) -> ZipLongest<Self, U>
       where Self: Sized,
             U: Stream { ... }
}
Expand description

Itertools extension trait but for Streams instead of Iterators.

Provided Methods§

Source

fn zip_longest<U>(self, other: U) -> ZipLongest<Self, U>
where Self: Sized, U: Stream,

Yields pairs, EitherOrBoth::Both, of items from both streams, until at least one runs out, then either EitherOrBoth::Left (if right ends) or EitherOrBoth::Right (if left ends).

Implementors§