Class Subspace :: sus :: iter :: StepBy

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

An iterator that skips over n elements of another iterator.

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

Static Methods

StepBy(StepBy<InnerIter>&&)
StepBy(sus::usize step, InnerSizedIter&& next_iter)
StepBy(sus::iter::StepBy::Clone, sus::usize step, InnerSizedIter&& next_iter, bool first_take)

Methods

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