Class Subspace :: sus :: iter :: OnceWith

template <class ItemT, class GenFn>
class OnceWith final
{ ... };

An Iterator that walks over at most a single Item.

Methods

auto clone() const -> OnceWith<ItemT, GenFn>
requires
sus::mem::Clone<GenFn>
auto exact_size_hint() const -> sus::usize
auto next() -> Option<sus::iter::OnceWith::Item>
auto next_back() -> Option<sus::iter::OnceWith::Item>
auto size_hint() const -> SizeHint

sus::iter::Iterator trait.

Operators

auto operator=(OnceWith<ItemT, GenFn>&&) -> OnceWith<ItemT, GenFn>&