Function multizip
fn multizip<T, U>(t: U) -> Zip<T>
where
Zip<T>: From<U> + Iterator
An iterator that generalizes .zip() and allows running multiple iterators in lockstep.
The iterator Zip<(I, J, ..., M)> is formed from a tuple of iterators (or values that
implement IntoIterator) and yields elements
until any of the subiterators yields None.
The iterator element type is a tuple like like (A, B, ..., E) where A to E are the
element types of the subiterator.
Note: The result of this function is a value of a named type (Zip<(I, J, ..)> of each component iterator I, J, ...) if each component iterator is
nameable.
Prefer izip!() over multizip for the performance benefits of using the
standard library .zip(). Prefer multizip if a nameable type is needed.
use multizip;
// iterate over three sequences side-by-side
let mut results = ;
let inputs = ;
for in multizip
assert_eq!;