Class Subspace :: sus :: collections :: SplitInclusive

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

An iterator over subslices separated by elements that match a predicate function. Unlike Split, it contains the matched part as a terminator of the subslice.

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

Methods

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