pub trait Zip {
type Item;
type Stream: Stream<Item = Self::Item>;
// Required method
fn zip(self) -> Self::Stream;
}
Expand description
‘Zips up’ multiple streams into a single stream of pairs.
pub trait Zip {
type Item;
type Stream: Stream<Item = Self::Item>;
// Required method
fn zip(self) -> Self::Stream;
}
‘Zips up’ multiple streams into a single stream of pairs.