Struct griddle::hash_set::rayon::ParDifference [−][src]
pub struct ParDifference<'a, T, S> { /* fields omitted */ }
Expand description
Parallel iterator over shared references to elements in the difference of sets.
This iterator is created by the par_difference
method on HashSet
.
See its documentation for more.
Trait Implementations
impl<'a, T, S> ParallelIterator for ParDifference<'a, T, S> where
T: Eq + Hash + Sync,
S: BuildHasher + Sync,
impl<'a, T, S> ParallelIterator for ParDifference<'a, T, S> where
T: Eq + Hash + Sync,
S: BuildHasher + Sync,
Internal method used to define the behavior of this parallel iterator. You should not need to call this directly. Read more
Executes OP
on each item produced by the iterator, in parallel. Read more
Executes OP
on the given init
value with each item produced by
the iterator, in parallel. Read more
Executes OP
on a value returned by init
with each item produced by
the iterator, in parallel. Read more
Executes a fallible OP
on each item produced by the iterator, in parallel. Read more
Executes a fallible OP
on the given init
value with each item
produced by the iterator, in parallel. Read more
Executes a fallible OP
on a value returned by init
with each item
produced by the iterator, in parallel. Read more
Applies map_op
to each item of this iterator, producing a new
iterator with the results. Read more
Applies map_op
to the given init
value with each item of this
iterator, producing a new iterator with the results. Read more
Applies map_op
to a value returned by init
with each item of this
iterator, producing a new iterator with the results. Read more
Applies inspect_op
to a reference to each item of this iterator,
producing a new iterator passing through the original items. This is
often useful for debugging to see what’s happening in iterator stages. Read more
Mutates each item of this iterator before yielding it. Read more
Applies filter_op
to each item of this iterator, producing a new
iterator with only the items that gave true
results. Read more
Applies filter_op
to each item of this iterator to get an Option
,
producing a new iterator with only the items from Some
results. Read more
Applies map_op
to each item of this iterator to get nested parallel iterators,
producing a new parallel iterator that flattens these back into one. Read more
fn flat_map_iter<F, SI>(self, map_op: F) -> FlatMapIter<Self, F> where
F: Fn(Self::Item) -> SI + Sync + Send,
SI: IntoIterator,
<SI as IntoIterator>::Item: Send,
fn flat_map_iter<F, SI>(self, map_op: F) -> FlatMapIter<Self, F> where
F: Fn(Self::Item) -> SI + Sync + Send,
SI: IntoIterator,
<SI as IntoIterator>::Item: Send,
Applies map_op
to each item of this iterator to get nested serial iterators,
producing a new parallel iterator that flattens these back into one. Read more
An adaptor that flattens parallel-iterable Item
s into one large iterator. Read more
fn flatten_iter(self) -> FlattenIter<Self> where
Self::Item: IntoIterator,
<Self::Item as IntoIterator>::Item: Send,
fn flatten_iter(self) -> FlattenIter<Self> where
Self::Item: IntoIterator,
<Self::Item as IntoIterator>::Item: Send,
An adaptor that flattens serial-iterable Item
s into one large iterator. Read more
Reduces the items in the iterator into one item using op
.
The argument identity
should be a closure that can produce
“identity” value which may be inserted into the sequence as
needed to create opportunities for parallel execution. So, for
example, if you are doing a summation, then identity()
ought
to produce something that represents the zero for your type
(but consider just calling sum()
in that case). Read more
Reduces the items in the iterator into one item using op
.
If the iterator is empty, None
is returned; otherwise,
Some
is returned. Read more
Reduces the items in the iterator into one item using a fallible op
. Read more
Parallel fold is similar to sequential fold except that the
sequence of items may be subdivided before it is
folded. Consider a list of numbers like 22 3 77 89 46
. If
you used sequential fold to add them (fold(0, |a,b| a+b)
,
you would wind up first adding 0 + 22, then 22 + 3, then 25 +
77, and so forth. The parallel fold works similarly except
that it first breaks up your list into sublists, and hence
instead of yielding up a single sum at the end, it yields up
multiple sums. The number of results is nondeterministic, as
is the point where the breaks occur. Read more
Applies fold_op
to the given init
value with each item of this
iterator, finally producing the value for further use. Read more
Performs a fallible parallel fold. Read more
fn try_fold_with<F, T, R>(self, init: T, fold_op: F) -> TryFoldWith<Self, R, F> where
R: Try<Ok = T> + Send,
T: Clone + Send,
F: Fn(T, Self::Item) -> R + Sync + Send,
fn try_fold_with<F, T, R>(self, init: T, fold_op: F) -> TryFoldWith<Self, R, F> where
R: Try<Ok = T> + Send,
T: Clone + Send,
F: Fn(T, Self::Item) -> R + Sync + Send,
Performs a fallible parallel fold with a cloneable init
value. Read more
Sums up the items in the iterator. Read more
Multiplies all the items in the iterator. Read more
Computes the minimum of all the items in the iterator. If the
iterator is empty, None
is returned; otherwise, Some(min)
is returned. Read more
Computes the minimum of all the items in the iterator with respect to
the given comparison function. If the iterator is empty, None
is
returned; otherwise, Some(min)
is returned. Read more
Computes the item that yields the minimum value for the given
function. If the iterator is empty, None
is returned;
otherwise, Some(item)
is returned. Read more
Computes the maximum of all the items in the iterator. If the
iterator is empty, None
is returned; otherwise, Some(max)
is returned. Read more
Computes the maximum of all the items in the iterator with respect to
the given comparison function. If the iterator is empty, None
is
returned; otherwise, Some(min)
is returned. Read more
Computes the item that yields the maximum value for the given
function. If the iterator is empty, None
is returned;
otherwise, Some(item)
is returned. Read more
fn chain<C>(self, chain: C) -> Chain<Self, <C as IntoParallelIterator>::Iter> where
C: IntoParallelIterator<Item = Self::Item>,
fn chain<C>(self, chain: C) -> Chain<Self, <C as IntoParallelIterator>::Iter> where
C: IntoParallelIterator<Item = Self::Item>,
Takes two iterators and creates a new iterator over both. Read more
Searches for some item in the parallel iterator that
matches the given predicate and returns it. This operation
is similar to find
on sequential iterators but
the item returned may not be the first one in the parallel
sequence which matches, since we search the entire sequence in parallel. Read more
Searches for the sequentially first item in the parallel iterator that matches the given predicate and returns it. Read more
Searches for the sequentially last item in the parallel iterator that matches the given predicate and returns it. Read more
Applies the given predicate to the items in the parallel iterator and returns any non-None result of the map operation. Read more
Applies the given predicate to the items in the parallel iterator and returns the sequentially first non-None result of the map operation. Read more
Applies the given predicate to the items in the parallel iterator and returns the sequentially last non-None result of the map operation. Read more
Searches for some item in the parallel iterator that matches the given predicate, and if so returns true. Once a match is found, we’ll attempt to stop process the rest of the items. Proving that there’s no match, returning false, does require visiting every item. Read more
Tests that every item in the parallel iterator matches the given predicate, and if so returns true. If a counter-example is found, we’ll attempt to stop processing more items, then return false. Read more
fn while_some<T>(self) -> WhileSome<Self> where
Self: ParallelIterator<Item = Option<T>>,
T: Send,
fn while_some<T>(self) -> WhileSome<Self> where
Self: ParallelIterator<Item = Option<T>>,
T: Send,
Creates an iterator over the Some
items of this iterator, halting
as soon as any None
is found. Read more
Wraps an iterator with a fuse in case of panics, to halt all threads as soon as possible. Read more
Creates a fresh collection containing all the elements produced by this parallel iterator. Read more
fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB) where
Self: ParallelIterator<Item = (A, B)>,
A: Send,
B: Send,
FromB: Default + Send + ParallelExtend<B>,
FromA: Default + Send + ParallelExtend<A>,
fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB) where
Self: ParallelIterator<Item = (A, B)>,
A: Send,
B: Send,
FromB: Default + Send + ParallelExtend<B>,
FromA: Default + Send + ParallelExtend<A>,
Unzips the items of a parallel iterator into a pair of arbitrary
ParallelExtend
containers. Read more
Partitions the items of a parallel iterator into a pair of arbitrary
ParallelExtend
containers. Items for which the predicate
returns
true go into the first container, and the rest go into the second. Read more
Partitions and maps the items of a parallel iterator into a pair of
arbitrary ParallelExtend
containers. Either::Left
items go into
the first container, and Either::Right
items go into the second. Read more
Intersperses clones of an element between items of this iterator. Read more
Auto Trait Implementations
impl<'a, T, S> RefUnwindSafe for ParDifference<'a, T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, S> Send for ParDifference<'a, T, S> where
S: Sync,
T: Sync,
impl<'a, T, S> Sync for ParDifference<'a, T, S> where
S: Sync,
T: Sync,
impl<'a, T, S> Unpin for ParDifference<'a, T, S>
impl<'a, T, S> UnwindSafe for ParDifference<'a, T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Iter = T
type Iter = T
The parallel iterator type that will be created.
type Item = <T as ParallelIterator>::Item
type Item = <T as ParallelIterator>::Item
The type of item that the parallel iterator will produce.
Converts self
into a parallel iterator. Read more