Trait naan::fun::F1

source ·
pub trait F1<A>: F1Once<A> {
    // Required method
    fn call(&self, a: A) -> Self::Ret;
}
Expand description

A function that accepts 1 argument and can be called any number of times.

Required Methods§

source

fn call(&self, a: A) -> Self::Ret

Call the function

Implementors§

source§

impl<F, A, B> F1<A> for Fwhere F: Fn(A) -> B,

source§

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

source§

impl<F, A, B, C> F1<B> for naan::fun::curry2::Applied1<F, A, B, C>where F: Fn(A, B) -> C, A: Clone,

source§

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

source§

impl<F, A, B, C, D> F1<B> for naan::fun::curry3::Applied1<F, A, B, C, D>where F: Fn(A, B, C) -> D + Clone, A: Clone,

source§

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

source§

impl<F, G, A, X, C> F1<A> for Compose<F, G, X>where F: F1<A, Ret = X>, G: F1<X, Ret = C>,