pub trait IteratorExtension: IntoIterator + Sealed {
// Provided methods
fn const_size_flatten(self) -> ConstSizeFlatten<Self::IntoIter> ⓘ
where Self: Sized,
Self::Item: IntoIterator { ... }
fn const_size_flat_map<U, F>(
self,
f: F,
) -> ConstSizeFlatMap<Self::IntoIter, U, F> ⓘ
where Self: Sized,
U: IntoIterator,
F: FnMut(Self::Item) -> U { ... }
}Expand description
Convenience trait that allows you to construct ConstSizeFlatten and ConstSizeFlatMap.
This trait is sealed, you cannot implement it.
Provided Methods§
Sourcefn const_size_flatten(self) -> ConstSizeFlatten<Self::IntoIter> ⓘ
fn const_size_flatten(self) -> ConstSizeFlatten<Self::IntoIter> ⓘ
Construct a ConstSizeFlatten from an IntoIterator (which includes Iterators).
This is the impl version of const_size_flatten.
Sourcefn const_size_flat_map<U, F>(
self,
f: F,
) -> ConstSizeFlatMap<Self::IntoIter, U, F> ⓘ
fn const_size_flat_map<U, F>( self, f: F, ) -> ConstSizeFlatMap<Self::IntoIter, U, F> ⓘ
Construct a ConstSizeFlatMap from an IntoIterator (which includes Iterators).
This is the impl version of const_size_flat_map.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".