Functor

Trait Functor 

Source
pub trait Functor<T: Type>: Type {
    type HKT<A: Type>: Type;
}

Required Associated Types§

Source

type HKT<A: Type>: Type

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.

Implementors§

Source§

impl<T: Type> Functor<T> for List<T>

Source§

type HKT<A: Type> = List<A>

Source§

impl<T: Type> Functor<T> for Maybe<T>

Source§

type HKT<A: Type> = Maybe<A>