[][src]Trait higher_cat::Pure

pub trait Pure<A> {
    fn pure(value: A) -> Self;
}

Pure lets you construct a value of type F<A> using a single value of A.

Required methods

fn pure(value: A) -> Self

Loading content...

Implementations on Foreign Types

impl<A> Pure<A> for Option<A>[src]

impl<A, E> Pure<A> for Result<A, E>[src]

impl<A> Pure<A> for Vec<A>[src]

impl<A> Pure<A> for VecDeque<A>[src]

impl<A> Pure<A> for LinkedList<A>[src]

impl<A> Pure<A> for BinaryHeap<A> where
    A: Ord
[src]

impl<A> Pure<A> for BTreeSet<A> where
    A: Ord
[src]

impl<A, S> Pure<A> for HashSet<A, S> where
    A: Hash + Eq,
    S: BuildHasher + Default
[src]

impl<A, B> Pure<(A, B)> for BTreeMap<A, B> where
    A: Ord,
    B: Ord
[src]

impl<A, B, S> Pure<(A, B)> for HashMap<A, B, S> where
    A: Hash + Eq,
    B: Hash + Eq,
    S: BuildHasher + Default
[src]

Loading content...

Implementors

Loading content...