Trait Applicative

Source
pub trait Applicative<A, F, B>:
    Functor<A, B>
    + Apply<A, F, B>
    + Pure<A>
where F: Fn(A) -> B,
{ }
Expand description

An Applicative functor is anything which implements Functor, Apply and Pure.

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<M, A, F, B> Applicative<A, F, B> for M
where M: Functor<A, B> + Apply<A, F, B> + Pure<A>, F: Fn(A) -> B,