Trait naan::functor::FunctorOnce
source · pub trait FunctorOnce<F, A>where
F: HKT1<T<A> = Self>,{
// Required method
fn fmap1<AB, B>(self, f: AB) -> F::T<B>
where AB: F1Once<A, Ret = B>;
}
Expand description
Functor
, but specialized to know at compile-time
that the mapping function will only be called one time.
Required Methods§
sourcefn fmap1<AB, B>(self, f: AB) -> F::T<B>where
AB: F1Once<A, Ret = B>,
fn fmap1<AB, B>(self, f: AB) -> F::T<B>where AB: F1Once<A, Ret = B>,
See FunctorOnce