Trait rayon::slice::chunk_by::ChunkBySlice

source ·
trait ChunkBySlice<T>: AsRef<[T]> + Default + Send {
    // Required method
    fn split(self, index: usize) -> (Self, Self);

    // Provided methods
    fn find(
        &self,
        pred: &impl Fn(&T, &T) -> bool,
        start: usize,
        end: usize,
    ) -> Option<usize> { ... }
    fn rfind(&self, pred: &impl Fn(&T, &T) -> bool, end: usize) -> Option<usize> { ... }
}

Required Methods§

source

fn split(self, index: usize) -> (Self, Self)

Provided Methods§

source

fn find( &self, pred: &impl Fn(&T, &T) -> bool, start: usize, end: usize, ) -> Option<usize>

source

fn rfind(&self, pred: &impl Fn(&T, &T) -> bool, end: usize) -> Option<usize>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: Send> ChunkBySlice<T> for &mut [T]

source§

fn split(self, index: usize) -> (Self, Self)

source§

impl<T: Sync> ChunkBySlice<T> for &[T]

source§

fn split(self, index: usize) -> (Self, Self)

Implementors§