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

Required Associated Types

Alias for the type that we are generic over.

The type we are generic over and it’s container.

Required Methods

Lifts a function into the Functor context.

In Haskell speak this translates to, fmap :: a -> b -> f a -> f b

Implementations on Foreign Types

Implementors