Module prelude
The rayon prelude imports the various ParallelIterator traits.
The intention is that one can include use rayon::prelude::* and
have easy access to the various traits and methods you will need.
Traits
-
FromParallelIterator
FromParallelIteratorimplements the creation of a collection from aParallelIterator. By implementingFromParallelIteratorfor 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
IntoParallelIteratorimplements the conversion to aParallelIterator. -
IntoParallelRefIterator
IntoParallelRefIteratorimplements the conversion to aParallelIterator, providing shared references to the data. -
IntoParallelRefMutIterator
IntoParallelRefMutIteratorimplements the conversion to aParallelIterator, providing mutable references to the data. -
ParallelBridge
Conversion trait to convert an
Iteratorto aParallelIterator. -
ParallelDrainFull
ParallelDrainFullcreates a parallel iterator that moves all items from a collection while retaining the original capacity. -
ParallelDrainRange
ParallelDrainRangecreates a parallel iterator that moves a range of items from a collection while retaining the original capacity. -
ParallelExtend
ParallelExtendextends an existing collection with items from aParallelIterator. - ParallelIterator Parallel version of the standard iterator trait.
- ParallelSlice Parallel extensions for slices.
- ParallelSliceMut Parallel extensions for mutable slices.
- ParallelString Parallel extensions for strings.