Trait rayon::iter::plumbing::Folder
[−]
[src]
pub trait Folder<Item>: Sized { type Result; fn consume(self, item: Item) -> Self; fn complete(self) -> Self::Result; fn full(&self) -> bool; fn consume_iter<I>(self, iter: I) -> Self
where
I: IntoIterator<Item = Item>, { ... } }
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.
fn full(&self) -> bool
Hint whether this Folder
would like to stop processing
further items, e.g. if a search has been completed.
Provided Methods
fn consume_iter<I>(self, iter: I) -> Self where
I: IntoIterator<Item = Item>,
I: IntoIterator<Item = Item>,
Consume items from the iterator until full, and return new sequential state.