Class Subspace :: sus :: iter :: Take

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

An iterator that only iterates over the first n iterations of another iterator.

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

Methods

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