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>

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§