trait SpecTake: Iterator {
// Required methods
fn spec_fold<B, F>(self, init: B, f: F) -> B
where Self: Sized,
F: FnMut(B, Self::Item) -> B;
fn spec_for_each<F: FnMut(Self::Item)>(self, f: F);
}
Required Methods§
fn spec_fold<B, F>(self, init: B, f: F) -> B
fn spec_for_each<F: FnMut(Self::Item)>(self, f: F)
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.