pub trait Functor<A> {
type Mapped<B>;
// Required method
fn fmap<B, F: Fn(A) -> B>(self, f: F) -> Self::Mapped<B>;
}Expand description
Rust-level Functor trait.
Required Associated Types§
Required Methods§
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.