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