pub trait CustomIterTools: Iterator {
// Provided methods
unsafe fn trust_my_length(
self,
length: usize,
) -> TrustMyLength<Self, Self::Item> ⓘ
where Self: Sized { ... }
fn collect_trusted<T: FromTrustedLenIterator<Self::Item>>(self) -> T
where Self: Sized + TrustedLen { ... }
fn collect_reversed<T: FromIteratorReversed<Self::Item>>(self) -> T
where Self: Sized + TrustedLen { ... }
}Provided Methods§
Sourceunsafe fn trust_my_length(
self,
length: usize,
) -> TrustMyLength<Self, Self::Item> ⓘwhere
Self: Sized,
unsafe fn trust_my_length(
self,
length: usize,
) -> TrustMyLength<Self, Self::Item> ⓘwhere
Self: Sized,
fn collect_trusted<T: FromTrustedLenIterator<Self::Item>>(self) -> Twhere
Self: Sized + TrustedLen,
fn collect_reversed<T: FromIteratorReversed<Self::Item>>(self) -> Twhere
Self: Sized + TrustedLen,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".