Trait Functor

Source
pub trait Functor: Functor {
    // Required method
    fn fmap<A, B, F>(f: F, fa: Self::Container<A>) -> Self::Container<B>
       where F: FnOnce(A) -> B;
}

Required Methods§

Source

fn fmap<A, B, F>(f: F, fa: Self::Container<A>) -> Self::Container<B>
where F: FnOnce(A) -> B,

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§