Trait rustmex_core::mappable::Mappable
source · pub trait Mappable<A, B> {
type Target;
// Required method
fn map<F>(self, f: F) -> Self::Target
where F: Fn(A) -> B;
}Expand description
Convert some object into another object via some shared behaviour for each of its parts.