pub trait MapAny: Sized {
    fn map<T, F: Fn(Self) -> T>(self, map_fn: F) -> T;
}
Expand description

Adds a map() method to any type, allowing for inline conversion from one type to another.

Required methods

Takes a closure and calls it with Self, then returns whatever the closure returned.

Implementors