Skip to main content

Pure

Trait Pure 

Source
pub trait Pure<A>: HKT<A> {
    // Required method
    fn of(c: Self::Current) -> Self::Target;
}

Required Methods§

Source

fn of(c: Self::Current) -> Self::Target

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Source§

fn of(a: A) -> Self::Target

Source§

impl<A> Pure<A> for Option<A>

Source§

fn of(a: A) -> Self::Target

Implementors§