Trait Lift

Source
pub trait Lift<A> {
    // Required method
    fn lift(a: A) -> Self;
}
Expand description

Lift a value inside a monad.

Required Methods§

Source

fn lift(a: A) -> Self

Lift a value into a default structure.

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.

Implementations on Foreign Types§

Source§

impl<A> Lift<A> for Option<A>

Source§

fn lift(a: A) -> Self

Source§

impl<A, E> Lift<A> for Result<A, E>

Source§

fn lift(a: A) -> Self

Implementors§