pub trait Functor<T>: HKT<T> {
// Required method
fn fmap<F, U>(&self, f: F) -> Self::Cont<U>
where F: Fn(&T) -> U;
}
Expand description
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.