Trait Monad

Source
pub trait Monad: Applicative + Bind { }

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> Monad for T
where T: Applicative + Bind,

Blanket implementation for the Monad typeclass.

Any type that implements all the required supertraits automatically implements Monad.