Trait rayon::par_iter::ToParallelChunksMut [] [src]

pub trait ToParallelChunksMut<'data> {
    type Iter: ParallelIterator<Item=&'data mut [Self::Item]>;
    type Item: Send + 'data;
    fn par_chunks_mut(&'data mut self, size: usize) -> Self::Iter;
}

Associated Types

Required Methods

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

The policy for how a collection is divided into chunks is not dictated here (e.g. a B-tree-like collection may by necessity produce many chunks with fewer than size elements), but an implementation should strive to maximize chunk size when possible.

Implementors