Class Subspace :: sus :: iter :: MapWhile

template <class ToItem, class InnerSizedIter, class MapFn>
class MapWhile final
{ ... };

An iterator that maps each item to a new type based on a map function.

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

Static Methods

MapWhile(MapWhile<ToItem, InnerSizedIter, MapFn>&&)

Methods

auto clone() const -> MapWhile<ToItem, InnerSizedIter, MapFn>
requires
sus::mem::Clone<MapFn>
sus::mem::Clone<InnerSizedIter>
auto next() -> Option<sus::iter::MapWhile::Item>
auto next_back() -> Option<sus::iter::MapWhile::Item>
requires
sus::iter::DoubleEndedIterator<InnerSizedIter, FromItem>
auto size_hint() const -> SizeHint

sus::iter::Iterator trait.

Operators

auto operator=(MapWhile<ToItem, InnerSizedIter, MapFn>&&) -> MapWhile<ToItem, InnerSizedIter, MapFn>&