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§

source

fn const_size_flatten(self) -> ConstSizeFlatten<Self::IntoIter>
where Self: Sized, Self::Item: IntoIterator,

Construct a ConstSizeFlatten from an IntoIterator (which includes Iterators). This is the impl version of const_size_flatten.

source

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,

Construct a ConstSizeFlatMap from an IntoIterator (which includes Iterators). This is the impl version of const_size_flat_map.

Implementors§