Function zip_eq

Source
pub fn zip_eq<A, AIter, B, BIter, Error>(
    a: A,
    b: B,
    err: Error,
) -> Result<ZipEq<A::IntoIter, B::IntoIter>, Error>
where A: IntoIterator<IntoIter = AIter>, AIter: ExactSizeIterator, B: IntoIterator<IntoIter = BIter>, BIter: ExactSizeIterator,
Expand description

Zips two iterators but panics if they are not of the same length.

Similar to itertools::zip_eq, but we check the lengths at construction time.