Trait pcw_fn::Functor

source ·
pub trait Functor<T>: Kind1To1 {
    fn fmap<S>(self, f: impl FnMut(T) -> S) -> Self::Constructor<S>;
}
Expand description

A trait for types that can be mapped over to obtain an instance of “the same type” with a different type parameter.

Required Methods§

Implementations on Foreign Types§

Implementors§