collections::slice::RSplit - Rust
Description: API documentation for the Rust `RSplit` struct in crate `collections`.
Keywords: rust, rustlang, rust-lang, RSplit

# Struct collections::slice::RSplit [−] [src]

    pub struct RSplit<'a, T, P> where
        P: FnMut(&T) -> bool,
        T: 'a,  { /* fields omitted */ }

🔬 This is a nightly-only experimental API. (`slice_rsplit` #41020)

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.

## Trait Implementations

### `impl<'a, T, P> Clone for RSplit<'a, T, P> where
P: Clone + FnMut(&T) -> bool,
T: 'a + Clone,`
[src]

#### `fn clone(&self) -> RSplit<'a, T, P>`
[src]

🔬 This is a nightly-only experimental API. (`slice_rsplit` #41020)

### `impl<'a, T, P> Debug for RSplit<'a, T, P> where
P: FnMut(&T) -> bool,
T: 'a + Debug,`
[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result<(), Error>`
[src]

Formats the value using the given formatter.

### `impl<'a, T, P> FusedIterator for RSplit<'a, T, P> where
P: FnMut(&T) -> bool,`
[src]

### `impl<'a, T, P> Iterator for RSplit<'a, T, P> where
P: FnMut(&T) -> bool,`
[src]

#### `type Item = &'a [T]`

🔬 This is a nightly-only experimental API. (`slice_rsplit` #41020)

#### `fn next(&mut self) -> Option<&'a [T]>`
[src]

🔬 This is a nightly-only experimental API. (`slice_rsplit` #41020)

#### `fn size_hint(&self) -> (usize, Option<usize>)`
[src]

🔬 This is a nightly-only experimental API. (`slice_rsplit` #41020)

### `impl<'a, T, P> DoubleEndedIterator for RSplit<'a, T, P> where
P: FnMut(&T) -> bool,`
[src]

#### `fn next_back(&mut self) -> Option<&'a [T]>`
[src]

🔬 This is a nightly-only experimental API. (`slice_rsplit` #41020)

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)