Class Subspace :: sus :: iter :: TakeWhile

template <class InnerSizedIter, class Pred>
class TakeWhile final
{ ... };

An iterator that only accepts elements while pred returns true.

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

Methods

auto clone() const -> TakeWhile<InnerIter, Pred>
requires
sus::mem::Clone<Pred>
sus::mem::Clone<InnerSizedIter>
auto next() -> Option<sus::iter::TakeWhile::Item>
auto size_hint() const -> SizeHint

sus::iter::Iterator trait.

Operators

auto operator=(TakeWhile<InnerIter, Pred>&&) -> TakeWhile<InnerIter, Pred>&