Trait recursion_schemes::functor::Functor
source · pub trait Functor {
type Layer<X>;
fn fmap<F, A, B>(input: Self::Layer<A>, f: F) -> Self::Layer<B>
where
F: FnMut(A) -> B;
}
pub trait Functor {
type Layer<X>;
fn fmap<F, A, B>(input: Self::Layer<A>, f: F) -> Self::Layer<B>
where
F: FnMut(A) -> B;
}