class RSplit

Declaration

template <class ItemT, class Pred>
class RSplit { /* full declaration omitted */ };

Description

An iterator over subslices separated by elements that match a predicate function, starting from the end of the slice. This struct is created by the `rsplit()` method on slices.

Declared at: sus/collections/iterators/split.h:532

Templates

ItemT
Pred

Method Overview

  • public constexpr Option<sus::collections::RSplit::Item> next() noexcept
  • public constexpr Option<sus::collections::RSplit::Item> next_back() noexcept
  • public constexpr ::sus::iter::SizeHint size_hint() const noexcept

Methods

constexpr Option<sus::collections::RSplit::Item>
next() noexcept

Declared at: sus/collections/iterators/split.h:539

constexpr Option<sus::collections::RSplit::Item>
next_back() noexcept

Declared at: sus/collections/iterators/split.h:542

constexpr ::sus::iter::SizeHint size_hint()
    const noexcept

Declared at: sus/collections/iterators/split.h:545