rw_iter_util

Trait ZipEqDebug

source
pub trait ZipEqDebug<B: IntoIterator>: Itertools + Sized {
    // Provided method
    fn zip_eq_debug(
        self,
        other: B,
    ) -> impl Iterator<Item = (Self::Item, B::Item)> { ... }
}

Provided Methods§

source

fn zip_eq_debug(self, other: B) -> impl Iterator<Item = (Self::Item, B::Item)>

Use zip_eq when debug_assertions is enabled, otherwise use zip.

It’s because zip_eq has a very large overhead of checking each item in the iterators.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<A: Itertools + Sized, B: IntoIterator> ZipEqDebug<B> for A