Trait naan::bifunctor::BifunctorOnce
source · pub trait BifunctorOnce<F, A, B>where
F: HKT2<T<A, B> = Self>,{
// Required method
fn bimap1<A2, B2, FA, FB>(self, fa: FA, fb: FB) -> F::T<A2, B2>
where FA: F1Once<A, Ret = A2>,
FB: F1Once<B, Ret = B2>;
// Provided methods
fn lmap1<A2, FA>(self, fa: FA) -> F::T<A2, B>
where Self: Sized,
FA: F1Once<A, Ret = A2> { ... }
fn rmap1<B2, FB>(self, fb: FB) -> F::T<A, B2>
where Self: Sized,
FB: F1Once<B, Ret = B2> { ... }
}
Expand description
Bifunctor
, but specialized to know at compile-time
that the functions will only be called at most once.