Apply

Trait Apply 

Source
pub trait Apply {
    type Elm;
    type M<B>;

    // Required method
    fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
       where F: Fn(&Self::Elm) -> B;
}

Required Associated Types§

Source

type Elm

Source

type M<B>

Required Methods§

Source

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> 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.

Implementations on Foreign Types§

Source§

impl Apply for f32

Source§

type Elm = f32

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for f64

Source§

type Elm = f64

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for i8

Source§

type Elm = i8

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for i16

Source§

type Elm = i16

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for i32

Source§

type Elm = i32

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for i64

Source§

type Elm = i64

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for i128

Source§

type Elm = i128

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for isize

Source§

type Elm = isize

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for u8

Source§

type Elm = u8

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for u16

Source§

type Elm = u16

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for u32

Source§

type Elm = u32

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for u64

Source§

type Elm = u64

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for u128

Source§

type Elm = u128

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl Apply for usize

Source§

type Elm = usize

Source§

type M<U> = U

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl<A> Apply for Option<A>

Source§

type Elm = A

Source§

type M<U> = Option<U>

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl<A> Apply for Box<A>

Source§

type Elm = A

Source§

type M<U> = Box<U>

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl<A> Apply for Rc<A>

Source§

type Elm = A

Source§

type M<U> = Rc<U>

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl<A> Apply for Vec<A>

Source§

type Elm = A

Source§

type M<U> = Vec<U>

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Source§

impl<A, E: Clone> Apply for Result<A, E>

Source§

type Elm = A

Source§

type M<U> = Result<U, E>

Source§

fn ap<B, F>(self, fs: Self::M<F>) -> Self::M<B>
where F: Fn(&Self::Elm) -> B,

Implementors§