Trait Mapper

Source
pub trait Mapper<U> {
    type Item<V>;

    // Required method
    fn map<V, F>(self, f: F) -> Self::Item<V>
       where F: FnOnce(U) -> V;
}

Required Associated Types§

Source

type Item<V>

Required Methods§

Source

fn map<V, F>(self, f: F) -> Self::Item<V>
where F: FnOnce(U) -> V,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§