Class Subspace :: sus :: iter :: Enumerate

template <class InnerSizedIter>
class Enumerate final
{ ... };

An iterator that yields the current count and the element during iteration.

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

Methods

auto clone() const -> Enumerate<InnerSizedIter>
requires
sus::mem::Clone<InnerSizedIter>
auto exact_size_hint() const -> sus::usize
requires
sus::iter::ExactSizeIterator<InnerSizedIter, FromItem>
auto next() -> Option<sus::iter::Enumerate::Item>
auto next_back() -> Option<sus::iter::Enumerate::Item>
requires
sus::iter::DoubleEndedIterator<InnerSizedIter, FromItem>
sus::iter::ExactSizeIterator<InnerSizedIter, FromItem>
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=(Enumerate<InnerSizedIter>&&) -> Enumerate<InnerSizedIter>&