pub trait Effect: Send {
    // Required methods
    fn e_pure() -> Self;
    fn e_parallel(el: Self, er: Self) -> Self;
    fn e_after(self, effect: Self) -> Self;
}
Expand description

Metadata type.

Required Methods§

source

fn e_pure() -> Self

Used in Pure::pure.

source

fn e_parallel(el: Self, er: Self) -> Self

Used in ApplicativeLA2::la2 and other Applicative methods.

source

fn e_after(self, effect: Self) -> Self

Used in Monad::bind and other Monad methods.

Implementations on Foreign Types§

source§

impl Effect for usize

source§

fn e_pure() -> Self

source§

fn e_parallel(el: Self, er: Self) -> Self

source§

fn e_after(self, effect: Self) -> Self

Implementors§