Module rayon::par_iter [] [src]

The ParallelIterator module makes it easy to write parallel programs using an iterator-style interface. To get access to all the methods you want, the easiest is to write use rayon::prelude::*; at the top of your module, which will import the various traits and methods you need.

The submodules of this module mostly just contain implementaton details of little interest to an end-user. If you'd like to read the code itself, the internal module and README.md file are a good place to start.

Modules

chain
collect
collections
enumerate
filter
filter_map
flat_map
for_each
internal

Internal traits and functions used to implement parallel iteration. These should be considered highly unstable: users of parallel iterators should not need to interact with them directly. See README.md for a high-level overview.

len
map
option
range
reduce
slice
slice_mut
vec
weight
zip

Traits

BoundedParallelIterator

A trait for parallel iterators items where the precise number of items is not known, but we can at least give an upper-bound. These sorts of iterators result from filtering.

ExactParallelIterator

A trait for parallel iterators items where the precise number of items is known. This occurs when e.g. iterating over a vector. Knowing precisely how many items will be produced is very useful.

IndexedParallelIterator

An iterator that supports "random access" to its data, meaning that you can split it at arbitrary indices and draw data from those points.

IntoParallelIterator
IntoParallelRefIterator
IntoParallelRefMutIterator
ParallelIterator

The ParallelIterator interface.

ToParallelChunks
ToParallelChunksMut