Class Subspace :: sus :: iter :: Reverse

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

An iterator that iterates over another iterator but in reverse.

The iterator wrapped by Reverse must be a DoubleEndedIterator.

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

Static Methods

Reverse(Reverse<InnerSizedIter>&&)

Methods

auto clone() const -> Reverse<InnerSizedIter>
requires
sus::mem::Clone<InnerSizedIter>

sus::mem::Clone implementation

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

sus::iter::ExactSizeIterator trait.

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

sus::iter::Iterator trait.

auto next_back() -> Option<sus::iter::Reverse::Item>

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=(Reverse<InnerSizedIter>&&) -> Reverse<InnerSizedIter>&