pub trait Functor: SelfConstraint {
type Inner;
type Structure<A>: Functor<Inner = A>;
// Required method
fn fmap<A, B, F>(a: Self::Structure<A>, f: F) -> Self::Structure<B>
where F: Fn(A) -> B;
}
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.