Type Definition naan::fun::curry3::Applied0

source ·
pub type Applied0<F, A, B, C, D> = Curry3<F, Nothing<A>, Nothing<B>, Nothing<C>, D>;
Expand description

A curried function that accepts 3 arguments and has not been called with either.

Implementations§

source§

impl<F, A, B, C, D> Applied0<F, A, B, C, D>where F: F3Once<A, B, C, Ret = D>,

source

pub fn curry(f: F) -> Self

Curry a ternary function

source

pub fn uncurry(self) -> F

Unwrap the Curry2 wrapper, getting the inner function

Trait Implementations§

source§

impl<F, A, B, C, D> F1<A> for Applied0<F, A, B, C, D>where F: Clone + Fn(A, B, C) -> D,

source§

fn call(&self, a: A) -> Applied1<F, A, B, C, D>

Call the function
source§

impl<F, A, B, C, D> F1Once<A> for Applied0<F, A, B, C, D>where F: FnOnce(A, B, C) -> D,

§

type Ret = Curry3<F, Just<A>, Nothing<B>, Nothing<C>, D>

The type returned by this function
source§

fn call1(self, a: A) -> Applied1<F, A, B, C, D>

Call the function
source§

fn chain<G, C>(self, g: G) -> Compose<Self, G, Self::Ret>where Self: Sized, G: F1Once<Self::Ret, Ret = C>,

Create a new function that passes this one’s output to g’s input Read more