Structs§
- Represents a fork-join scope which can be used to spawn any number of tasks. See
scope()
for more information.
Traits§
- 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
implements the conversion to aParallelIterator
.IntoParallelRefIterator
implements the conversion to aParallelIterator
, providing shared references to the data.IntoParallelRefMutIterator
implements the conversion to aParallelIterator
, providing mutable references to the data.- Parallel version of the standard iterator trait.
- Parallel extensions for mutable slices.
Functions§
- Returns the number of threads in the current registry. If this code is executing within a Rayon thread-pool, then this will be the number of threads for the thread-pool of the current thread. Otherwise, it will be the number of threads for the global thread-pool.
- Takes two closures and potentially runs them in parallel. It returns a pair of the results from those closures.
- Creates a “fork-join” scope
s
and invokes the closure with a reference tos
. This closure can then spawn asynchronous tasks intos
. Those tasks may run asynchronously with respect to the closure; they may themselves spawn additional tasks intos
. When the closure returns, it will block until all tasks that have been spawned intos
complete.