higher_cat

Trait Monad

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

A Monad is like a burrito, and also anything which implements Bind and Applicative.

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