Trait rayon::par_iter::internal::Folder
[−]
[src]
pub trait Folder<Item> { type Result; fn consume(self, item: Item) -> Self; fn complete(self) -> Self::Result; }
Associated Types
type Result
Required Methods
fn consume(self, item: Item) -> Self
Consume next item and return new sequential state.
fn complete(self) -> Self::Result
Finish consuming items, produce final result.
Implementors
impl<'r, REDUCE_OP, ITEM> Folder<ITEM> for ReduceFolder<'r, REDUCE_OP, ITEM> where REDUCE_OP: ReduceOp<ITEM>