Class Subspace :: sus :: iter :: FlatMap

template <class IntoIterable, class InnerSizedIter, class MapFn>
class FlatMap final
{ ... };

An iterator that maps an iterator of types into an iterator of iterable types through a user-defined function, and then flattens them into an interator of those those iterable types' items.

In other words, this type maps Iterator[X] into Iterator[IntoIterable[T]] into Iterator[T].

This type is returned from Iterator::flat_map().

Static Methods

FlatMap(FlatMap<IntoIterable, InnerSizedIter, MapFn>&&)

Methods

auto clone() const -> FlatMap<IntoIterable, InnerSizedIter, MapFn>
requires
sus::mem::Clone<MapFn>
sus::mem::Clone<InnerSizedIter>
sus::mem::Clone<EachIter>
auto next() -> Option<sus::iter::FlatMap::Item>
auto next_back() -> Option<sus::iter::FlatMap::Item>
requires
sus::iter::DoubleEndedIterator<InnerSizedIter, typename InnerSizedIter::Item>
sus::iter::DoubleEndedIterator<EachIter, Item>
auto size_hint() const -> SizeHint

sus::iter::Iterator trait.

Operators

auto operator=(FlatMap<IntoIterable, InnerSizedIter, MapFn>&&) -> FlatMap<IntoIterable, InnerSizedIter, MapFn>&