Skip to main content

ParallelSliceMut

Trait ParallelSliceMut 

Source
pub trait ParallelSliceMut<T: Send> {
    // Required method
    fn as_parallel_slice_mut(&mut self) -> &mut [T];

    // Provided methods
    fn par_split_mut<P>(&mut self, separator: P) -> SplitMut<'_, T, P> 
       where P: Fn(&T) -> bool + Sync + Send { ... }
    fn par_chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<'_, T>  { ... }
    fn par_chunks_exact_mut(
        &mut self,
        chunk_size: usize,
    ) -> ChunksExactMut<'_, T>  { ... }
    fn par_rchunks_mut(&mut self, chunk_size: usize) -> RChunksMut<'_, T>  { ... }
    fn par_rchunks_exact_mut(
        &mut self,
        chunk_size: usize,
    ) -> RChunksExactMut<'_, T>  { ... }
}

Required Methods§

Source

fn as_parallel_slice_mut(&mut self) -> &mut [T]

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

Provided Methods§

Source

fn par_split_mut<P>(&mut self, separator: P) -> SplitMut<'_, T, P>
where P: Fn(&T) -> bool + Sync + Send,

Source

fn par_chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<'_, T>

Source

fn par_chunks_exact_mut(&mut self, chunk_size: usize) -> ChunksExactMut<'_, T>

Source

fn par_rchunks_mut(&mut self, chunk_size: usize) -> RChunksMut<'_, T>

Source

fn par_rchunks_exact_mut(&mut self, chunk_size: usize) -> RChunksExactMut<'_, T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Send> ParallelSliceMut<T> for [T]

Source§

fn as_parallel_slice_mut(&mut self) -> &mut [T]

Implementors§