Struct accurate::sum::SumFolder
[−]
[src]
pub struct SumFolder<Acc>(_);
Adapts a SumAccumulator
into a Folder
Trait Implementations
impl<Acc: Copy> Copy for SumFolder<Acc>
[src]
impl<Acc: Clone> Clone for SumFolder<Acc>
[src]
fn clone(&self) -> SumFolder<Acc>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<Acc: Debug> Debug for SumFolder<Acc>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<Acc, F> Folder<F> for SumFolder<Acc> where
Acc: SumAccumulator<F>,
[src]
Acc: SumAccumulator<F>,
type Result = Acc
The type of result that will ultimately be produced by the folder.
fn consume(self, item: F) -> Self
[src]
Consume next item and return new sequential state.
fn complete(self) -> Self::Result
[src]
Finish consuming items, produce final result.
fn full(&self) -> bool
[src]
Hint whether this Folder
would like to stop processing further items, e.g. if a search has been completed. Read more
fn consume_iter<I>(self, iter: I) -> Self where
I: IntoIterator<Item = Item>,
[src]
I: IntoIterator<Item = Item>,
Consume items from the iterator until full, and return new sequential state. Read more