pub trait ZipEqFast<B: IntoIterator>: ExactSizeIterator + Sizedwhere
B::IntoIter: ExactSizeIterator,{
// Provided method
fn zip_eq_fast(
self,
other: B,
) -> impl ExactSizeIterator<Item = (Self::Item, B::Item)> { ... }
}
Provided Methods§
Sourcefn zip_eq_fast(
self,
other: B,
) -> impl ExactSizeIterator<Item = (Self::Item, B::Item)>
fn zip_eq_fast( self, other: B, ) -> impl ExactSizeIterator<Item = (Self::Item, B::Item)>
A specialized version of zip_eq
for ExactSizeIterator
.
It’s a separate trait because Rust doesn’t support specialization yet. See tracking issue for specialization (RFC 1210).
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.