Struct accurate::sum::SumConsumer [] [src]

pub struct SumConsumer<Acc>(_);

Adapts a ParallelSumAccumulator into a Consumer

Trait Implementations

impl<Acc: Copy> Copy for SumConsumer<Acc>
[src]

impl<Acc: Clone> Clone for SumConsumer<Acc>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Acc: Debug> Debug for SumConsumer<Acc>
[src]

[src]

Formats the value using the given formatter. Read more

impl<Acc, F> Consumer<F> for SumConsumer<Acc> where
    Acc: ParallelSumAccumulator<F>,
    F: Zero + Send
[src]

The type of folder that this consumer can be converted into.

The type of reducer that is produced if this consumer is split.

The type of result that this consumer will ultimately produce.

[src]

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. Read more

[src]

Convert the consumer into a folder that can consume items sequentially, eventually producing a final result. Read more

[src]

Hint whether this Consumer would like to stop processing further items, e.g. if a search has been completed. Read more

impl<Acc, F> UnindexedConsumer<F> for SumConsumer<Acc> where
    Acc: ParallelSumAccumulator<F>,
    F: Zero + Send
[src]

[src]

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. Read more

[src]

Creates a reducer that can be used to combine the results from a split consumer. Read more

Auto Trait Implementations

impl<Acc> Send for SumConsumer<Acc> where
    Acc: Send

impl<Acc> Sync for SumConsumer<Acc> where
    Acc: Sync