Skip to main content

Apply

Trait Apply 

Source
pub trait Apply<B>: Functor<B> + HKT<Box<dyn Fn(<Self as HKT<B>>::Current) -> B>> {
    // Required method
    fn ap(
        self,
        f: <Self as HKT<Box<dyn Fn(<Self as HKT<B>>::Current) -> B>>>::Target,
    ) -> <Self as HKT<B>>::Target;
}

Required Methods§

Source

fn ap( self, f: <Self as HKT<Box<dyn Fn(<Self as HKT<B>>::Current) -> B>>>::Target, ) -> <Self as HKT<B>>::Target

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A, B, E> Apply<B> for Result<A, E>

Source§

fn ap( self, f: <Self as HKT<Box<dyn Fn(<Self as HKT<B>>::Current) -> B>>>::Target, ) -> <Self as HKT<B>>::Target

Source§

impl<A, B> Apply<B> for Option<A>

Source§

fn ap( self, f: <Self as HKT<Box<dyn Fn(<Self as HKT<B>>::Current) -> B>>>::Target, ) -> <Self as HKT<B>>::Target

Implementors§