[][src]Trait haskell_bits::applicative::Applicative

pub trait Applicative: Functor + Lift {
    fn lift2<TIn1, TIn2, TOut, F>(
        f: F,
        x1: &Self::Type,
        x2: &Self::Type
    ) -> Self::Type
    where
        Self: WithTypeArg<TIn1> + WithTypeArg<TIn2> + WithTypeArg<TOut>,
        F: Fn(&TIn1, &TIn2) -> TOut
; fn ap<TIn, TOut, TFunc>(f: &Self::Type, x: &Self::Type) -> Self::Type
    where
        Self: WithTypeArg<TFunc> + WithTypeArg<TIn> + WithTypeArg<TOut>,
        TFunc: Fn(&TIn) -> TOut
, { ... } }

Required methods

fn lift2<TIn1, TIn2, TOut, F>(
    f: F,
    x1: &Self::Type,
    x2: &Self::Type
) -> Self::Type where
    Self: WithTypeArg<TIn1> + WithTypeArg<TIn2> + WithTypeArg<TOut>,
    F: Fn(&TIn1, &TIn2) -> TOut, 

Loading content...

Provided methods

fn ap<TIn, TOut, TFunc>(f: &Self::Type, x: &Self::Type) -> Self::Type where
    Self: WithTypeArg<TFunc> + WithTypeArg<TIn> + WithTypeArg<TOut>,
    TFunc: Fn(&TIn) -> TOut, 

Loading content...

Implementors

impl Applicative for haskell_bits::impls::OptionTypeCon[src]

impl Applicative for haskell_bits::impls::VecTypeCon[src]

impl<E> Applicative for haskell_bits::impls::ResultTypeCon<E> where
    E: Clone
[src]

Loading content...