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§
Sourcefn zip_eq_debug(self, other: B) -> impl Iterator<Item = (Self::Item, B::Item)>
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.