Class Subspace :: sus :: collections :: SplitN

template <class ItemT, class Pred>
class SplitN final
requires
sus::fn::FnMut<Pred, _Bool (const ItemT &)>
{ ... };

An iterator over subslices separated by elements that match a predicate function, limited to a given number of splits.

This struct is created by the splitn() method on slices.

Methods

auto next() -> Option<sus::collections::SplitN::Item>
auto size_hint() const -> SizeHint