pub trait Reducer<I> {
type Output;
// Required methods
fn reduce(&mut self, input: I);
fn output(self) -> Self::Output;
}
Expand description
Reducer is responsible for reducing multiple inputs into a single output. This is used by the workpool to condense multiple work outputs to a single output.