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.
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.
|
Chain | Chain is an iterator that joins b after a in one continuous iterator.
This struct is created by the chain() method on ParallelIterator
|
Cloned | Cloned is an iterator that clones the elements of an underlying iterator.
|
Enumerate | Enumerate is an iterator that returns the current count along with the element.
This struct is created by the enumerate() method on ParallelIterator
|
Filter | Filter takes a predicate filter_op and filters out elements that match.
This struct is created by the filter() method on ParallelIterator
|
FilterMap | FilterMap creates an iterator that uses filter_op to both filter and map elements.
This struct is created by the filter_map() method on ParallelIterator .
|
FlatMap | FlatMap maps each element to an iterator, then flattens these iterators together.
This struct is created by the [flat_map() ] method on ParallelIterator
|
Fold | Fold is an iterator that applies a function over an iterator producing a single value.
This struct is created by the fold() method on ParallelIterator
|
FoldWith | FoldWith is an iterator that applies a function over an iterator producing a single value.
This struct is created by the fold_with() method on ParallelIterator
|
Inspect | Inspect is an iterator that calls a function with a reference to each
element before yielding it.
|
Map | Map is an iterator that transforms the elements of an underlying iterator.
|
MapWith | MapWith is an iterator that transforms the elements of an underlying iterator.
|
MaxLen | MaxLen is an iterator that imposes a maximum length on iterator splits.
This struct is created by the max_len() method on IndexedParallelIterator
|
MinLen | MinLen is an iterator that imposes a minimum length on iterator splits.
This struct is created by the min_len() method on IndexedParallelIterator
|
Rev | |
Skip | Skip is an iterator that skips over the first n elements.
This struct is created by the skip() method on ParallelIterator
|
Split | Split is a parallel iterator using arbitrary data and a splitting function.
This struct is created by the split() function.
|
Take | Take is an iterator that iterates over the first n elements.
This struct is created by the take() method on ParallelIterator
|
WhileSome | WhileSome is an iterator that yields the Some elements of an iterator,
halting as soon as any None is produced.
|
Zip | |
Either | Represents a value of one of two possible types.
|
split | The split function takes arbitrary data and a closure that knows how to
split it, and turns this into a ParallelIterator .
|