Class Subspace :: sus :: iter :: Scan

template <class OutType, class State, class InnerSizedIter, class Fn>
class Scan final
{ ... };

An iterator to maintain state while iterating another iterator.

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

Static Methods

Scan(Scan<OutType, State, InnerSizedIter, Fn>&&)

Methods

auto clone() const -> Scan<OutType, State, InnerSizedIter, Fn>
requires
sus::mem::Clone<State>
sus::mem::Clone<Fn>
sus::mem::Clone<InnerSizedIter>
auto next() -> Option<sus::iter::Scan::Item>
auto size_hint() const -> SizeHint

sus::iter::Iterator trait.

Operators

auto operator=(Scan<OutType, State, InnerSizedIter, Fn>&&) -> Scan<OutType, State, InnerSizedIter, Fn>&