Module prelude Copy item path
Summary Source FromParallelIterator FromParallelIterator
implements the creation of a collection
from a ParallelIterator
. By implementing
FromParallelIterator
for a given type, you define how it will be
created from an iterator.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 IntoParallelIterator
implements the conversion to a ParallelIterator
.IntoParallelRefIterator IntoParallelRefIterator
implements the conversion to a
ParallelIterator
, providing shared references to the data.IntoParallelRefMutIterator IntoParallelRefMutIterator
implements the conversion to a
ParallelIterator
, providing mutable references to the data.ParallelBridge Conversion trait to convert an Iterator
to a ParallelIterator
. ParallelDrainFull ParallelDrainFull
creates a parallel iterator that moves all items
from a collection while retaining the original capacity.ParallelDrainRange ParallelDrainRange
creates a parallel iterator that moves a range of items
from a collection while retaining the original capacity.ParallelExtend ParallelExtend
extends an existing collection with items from a ParallelIterator
.ParallelIterator Parallel version of the standard iterator trait. ParallelSlice Parallel extensions for slices. ParallelSliceMut Parallel extensions for mutable slices. ParallelString Parallel extensions for strings. SharedExt current_num_threads 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. join Takes two closures and potentially runs them in parallel. It
returns a pair of the results from those closures.