1 2 3 4 5 6 7 8 9 10 11
/// Function-like mapper from one value to one value. pub trait Map: Copy + Send { /// Input type. type I; /// Output type. type O; /// Maps one input value. fn map(&self, i: Self::I) -> Self::O; }