[][src]Trait rayon::slice::ParallelSlice

pub trait ParallelSlice<T: Sync> {
    fn as_parallel_slice(&self) -> &[T];

    fn par_split<P>(&self, separator: P) -> Split<T, P>
    where
        P: Fn(&T) -> bool + Sync + Send
, { ... }
fn par_windows(&self, window_size: usize) -> Windows<T> { ... }
fn par_chunks(&self, chunk_size: usize) -> Chunks<T> { ... } }

Parallel extensions for slices.

Required methods

fn as_parallel_slice(&self) -> &[T]

Returns a plain slice, which is used to implement the rest of the parallel methods.

Loading content...

Provided methods

fn par_split<P>(&self, separator: P) -> Split<T, P> where
    P: Fn(&T) -> bool + Sync + Send

Returns a parallel iterator over subslices separated by elements that match the separator.

fn par_windows(&self, window_size: usize) -> Windows<T>

Returns a parallel iterator over all contiguous windows of length size. The windows overlap.

fn par_chunks(&self, chunk_size: usize) -> Chunks<T>

Returns a parallel iterator over at most size elements of self at a time. The chunks do not overlap.

Loading content...

Implementations on Foreign Types

impl<T: Sync> ParallelSlice<T> for [T][src]

Loading content...

Implementors

Loading content...