Trait ApplyFirst

Source
pub trait ApplyFirst {
    // Required method
    fn apply_first<A, B>(
        fa: Apply<Self, (A,)>,
    ) -> impl Fn(Apply<Self, (B,)>) -> Apply<Self, (A,)>
       where Self: Kind<(A,)> + Kind<(B,)>,
             Apply<Self, (A,)>: Clone,
             A: Clone,
             B: Clone;
}

Required Methods§

Source

fn apply_first<A, B>( fa: Apply<Self, (A,)>, ) -> impl Fn(Apply<Self, (B,)>) -> Apply<Self, (A,)>
where Self: Kind<(A,)> + Kind<(B,)>, Apply<Self, (A,)>: Clone, A: Clone, B: Clone,

forall a b. ApplyFirst f => f a -> f b -> f a

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§