Trait rayon::par_iter::ToParallelChunks
[−]
[src]
pub trait ToParallelChunks<'data> {
type Iter: ParallelIterator<Item=&'data [Self::Item]>;
type Item: Sync + 'data;
fn par_chunks(&'data self, size: usize) -> Self::Iter;
}
Associated Types
Required Methods
fn par_chunks(&'data self, size: usize) -> Self::Iter
Returns a parallel iterator over at most size elements of
self at a time. The chunks 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.