Class Subspace :: sus :: iter :: ByRef

template <class RefIterator>
class ByRef final
{ ... };

An iterator that holds a reference to another iterator and proxies calls through to it. Used to create multiple iterators that share underlying state. The ByRef class must outlive the iterator it refers to.

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

Static Methods

ByRef(ByRef<RefIterator>&&)

Methods

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

sus::iter::ExactSizeIterator trait.

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

sus::iter::Iterator trait.

auto next_back() -> Option<sus::iter::ByRef::Item>
requires
sus::iter::DoubleEndedIterator<RefIterator, 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<RefIterator>

sus::iter::TrustedLen trait.

Operators

auto operator=(ByRef<RefIterator>&&) -> ByRef<RefIterator>&