pub struct DotConsumer<Acc>(/* private fields */);Expand description
Adapts a ParallelDotAccumulator into a Consumer
Trait Implementations§
Source§impl<Acc: Clone> Clone for DotConsumer<Acc>
impl<Acc: Clone> Clone for DotConsumer<Acc>
Source§fn clone(&self) -> DotConsumer<Acc>
fn clone(&self) -> DotConsumer<Acc>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Acc, F> Consumer<(F, F)> for DotConsumer<Acc>
Available on crate feature parallel only.
impl<Acc, F> Consumer<(F, F)> for DotConsumer<Acc>
Available on crate feature
parallel only.Source§type Reducer = AddReducer
type Reducer = AddReducer
The type of reducer that is produced if this consumer is split.
Source§fn split_at(self, _index: usize) -> (Self, Self, Self::Reducer)
fn split_at(self, _index: usize) -> (Self, Self, Self::Reducer)
Divide the consumer into two consumers, one processing items
0..index and one processing items from index... Also
produces a reducer that can be used to reduce the results at
the end.Source§fn into_folder(self) -> Self::Folder
fn into_folder(self) -> Self::Folder
Convert the consumer into a folder that can consume items
sequentially, eventually producing a final result.
Source§impl<Acc: Debug> Debug for DotConsumer<Acc>
impl<Acc: Debug> Debug for DotConsumer<Acc>
Source§impl<Acc, F> UnindexedConsumer<(F, F)> for DotConsumer<Acc>
Available on crate feature parallel only.
impl<Acc, F> UnindexedConsumer<(F, F)> for DotConsumer<Acc>
Available on crate feature
parallel only.Source§fn split_off_left(&self) -> Self
fn split_off_left(&self) -> Self
Splits off a “left” consumer and returns it. The
self
consumer should then be used to consume the “right” portion of
the data. (The ordering matters for methods like find_first –
values produced by the returned value are given precedence
over values produced by self.) Once the left and right
halves have been fully consumed, you should reduce the results
with the result of to_reducer.Source§fn to_reducer(&self) -> Self::Reducer
fn to_reducer(&self) -> Self::Reducer
Creates a reducer that can be used to combine the results from
a split consumer.
impl<Acc: Copy> Copy for DotConsumer<Acc>
Auto Trait Implementations§
impl<Acc> Freeze for DotConsumer<Acc>where
Acc: Freeze,
impl<Acc> RefUnwindSafe for DotConsumer<Acc>where
Acc: RefUnwindSafe,
impl<Acc> Send for DotConsumer<Acc>where
Acc: Send,
impl<Acc> Sync for DotConsumer<Acc>where
Acc: Sync,
impl<Acc> Unpin for DotConsumer<Acc>where
Acc: Unpin,
impl<Acc> UnwindSafe for DotConsumer<Acc>where
Acc: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more