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.
Object Safety§
This trait is not object safe.