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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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