Class Subspace :: sus :: iter :: Map

template <class ToItem, class InnerSizedIter, class MapFn>
class Map 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

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

Type is Move and (can be) Clone.

Methods

auto clone() const -> Map<ToItem, InnerSizedIter, MapFn>
requires
sus::mem::Clone<MapFn>
sus::mem::Clone<InnerSizedIter>

sus::mem::Clone trait.

auto exact_size_hint() const -> sus::usize
requires
sus::iter::ExactSizeIterator<InnerSizedIter, FromItem>

sus::iter::ExactSizeIterator trait.

auto next() -> Option<sus::iter::Map::Item>

sus::iter::Iterator trait.

auto next_back() -> Option<sus::iter::Map::Item>
requires
sus::iter::DoubleEndedIterator<InnerSizedIter, FromItem>

sus::iter::DoubleEndedIterator trait.

auto size_hint() const -> SizeHint

sus::iter::Iterator trait.

auto trusted_len() const -> sus::iter::__private::TrustedLenMarker
requires
sus::iter::TrustedLen<InnerSizedIter>

sus::iter::TrustedLen trait.

Operators

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