Trait Apply

Source
pub trait Apply {
    // Required method
    fn apply<F, A, B>(
        ff: App<Self, (F,)>,
    ) -> impl Fn(App<Self, (A,)>) -> App<Self, (B,)>
       where Self: Kind<(F,)> + Kind<(A,)> + Kind<(B,)>,
             App<Self, (F,)>: Clone,
             F: Fn(A) -> B,
             A: Clone;
}

Required Methods§

Source

fn apply<F, A, B>( ff: App<Self, (F,)>, ) -> impl Fn(App<Self, (A,)>) -> App<Self, (B,)>
where Self: Kind<(F,)> + Kind<(A,)> + Kind<(B,)>, App<Self, (F,)>: Clone, F: Fn(A) -> B, A: Clone,

forall a b. Apply f => f (a -> b) -> f a -> f b

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§