Trait rayon::slice::ParallelSliceMut
[−]
[src]
pub trait ParallelSliceMut<T: Send> { fn as_parallel_slice_mut(&mut self) -> &mut [T]; 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> { ... } }
Parallel extensions for mutable slices.
Required Methods
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
fn par_split_mut<P>(&mut self, separator: P) -> SplitMut<T, P> where
P: Fn(&T) -> bool + Sync + Send,
P: Fn(&T) -> bool + Sync + Send,
Returns a parallel iterator over mutable subslices separated by elements that match the separator.
fn par_chunks_mut(&mut self, chunk_size: usize) -> ChunksMut<T>
Returns a parallel iterator over at most size
elements of
self
at a time. The chunks are mutable and do not overlap.