1 2 3 4 5
/// Trait for types that implement a mapping from values of one set onto another. pub trait Surjection<X, Y> { /// Map value from domain onto codomain. fn map(&self, from: X) -> Y; }