Class Subspace :: sus :: iter :: Inspect

template <class InnerSizedIter, class InspectFn>
class Inspect final
{ ... };

An iterator that calls a function with a reference to each element before yielding it.

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

Static Methods

Inspect(Inspect<InnerSizedIter, InspectFn>&&)

Methods

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