pub trait Functor: Sized {
type Inner;
type Wrapped<T>: Functor;
fn rmap<B, F>(self, f: F) -> Self::Wrapped<B>
where
F: FnOnce(Self::Inner) -> B;
}
Expand description
Functor
pub trait Functor: Sized {
type Inner;
type Wrapped<T>: Functor;
fn rmap<B, F>(self, f: F) -> Self::Wrapped<B>
where
F: FnOnce(Self::Inner) -> B;
}
Functor