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 Iterator
s).
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 Iterator
s).
This is the impl
version of const_size_flat_map
.