Functor

Trait Functor 

Source
pub trait Functor {
    type Container<T>;

    // Required method
    fn fmap<A, B, F>(f: F, fa: Self::Container<A>) -> Self::Container<B>
       where F: FnMut(A) -> B;
}

Required Associated Types§

Required Methods§

Source

fn fmap<A, B, F>(f: F, fa: Self::Container<A>) -> Self::Container<B>
where F: FnMut(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§