Struct rayon::par_iter::noop::NoopConsumer
[−]
[src]
pub struct NoopConsumer;
Methods
impl NoopConsumer
[src]
fn new() -> Self
Trait Implementations
impl<ITEM> Consumer<ITEM> for NoopConsumer
[src]
type Folder = NoopConsumer
type Reducer = NoopReducer
type Result = ()
fn cost(&mut self, cost: f64) -> f64
If it costs producer_cost
to produce the items we will consume, returns cost adjusted to account for consuming them. Read more
fn split_at(self, _index: usize) -> (Self, Self, NoopReducer)
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
fn into_folder(self) -> Self
Convert the consumer into a folder that can consume items sequentially, eventually producing a final result. Read more
fn weighted(&self) -> bool
Reports whether the consumer has explicit weights.
fn full(&self) -> bool
Hint whether this Consumer
would like to stop processing further items, e.g. if a search has been completed. Read more
impl<ITEM> Folder<ITEM> for NoopConsumer
[src]
type Result = ()
fn consume(self, _item: ITEM) -> Self
Consume next item and return new sequential state.
fn complete(self)
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. Read more