Trait Reducer
pub trait Reducer<Result> {
// Required method
fn reduce(self, left: Result, right: Result) -> Result;
}
Available on crate feature
dep_rayon
only.Expand description
The reducer is the final step of a Consumer
– after a consumer
has been split into two parts, and each of those parts has been
fully processed, we are left with two results. The reducer is then
used to combine those two results into one. See the plumbing
README for further details.
Required Methods§
fn reduce(self, left: Result, right: Result) -> Result
fn reduce(self, left: Result, right: Result) -> Result
Reduce two final results into one; this is executed after a split.