pub trait Reducer<T, U> { // Required method fn apply(&self, acc: U, value: &T) -> U; }
Trait for types that can be used as reducer functions.
Apply the reducer to the accumulator and value.