Trait naan::apply::ApplySurrogate
source · pub trait ApplySurrogate<F, AB, TofA>where
Self: FunctorSurrogate<F, AB> + Equiv<To = F::T<AB>>,
F: HKT1,{
type ApplyOutput<A, B>: Equiv<To = F::T<B>>;
// Required method
fn apply_<A, B>(self, a: TofA) -> Self::ApplyOutput<A, B>
where AB: F1Once<A, Ret = B>;
}
Expand description
Required Associated Types§
sourcetype ApplyOutput<A, B>: Equiv<To = F::T<B>>
type ApplyOutput<A, B>: Equiv<To = F::T<B>>
Type returned by apply_
that is
conceptually the same as F::T<B>
.
Related: FunctorSurrogate::Output
Required Methods§
sourcefn apply_<A, B>(self, a: TofA) -> Self::ApplyOutput<A, B>where
AB: F1Once<A, Ret = B>,
fn apply_<A, B>(self, a: TofA) -> Self::ApplyOutput<A, B>where AB: F1Once<A, Ret = B>,
Apply the function A -> B
contained in Self
(F<A -> B>
) to
an instance of F<A>
to get F<B>
.