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§
sourcefn e_pure() -> Self
fn e_pure() -> Self
Used in Pure::pure.
sourcefn e_parallel(el: Self, er: Self) -> Self
fn e_parallel(el: Self, er: Self) -> Self
Used in ApplicativeLA2::la2 and other Applicative methods.
sourcefn e_after(self, effect: Self) -> Self
fn e_after(self, effect: Self) -> Self
Used in Monad::bind and other Monad methods.