Bind

Trait Bind 

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

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

Required Associated Types§

Source

type Elm

Source

type M<B>

Required Methods§

Source

fn bind<B, F>(self, f: F) -> Self::M<B>
where F: Fn(&Self::Elm) -> Self::M<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 Bind for f32

Source§

type Elm = f32

Source§

type M<U> = U

Source§

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

Source§

impl Bind for f64

Source§

type Elm = f64

Source§

type M<U> = U

Source§

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

Source§

impl Bind for i8

Source§

type Elm = i8

Source§

type M<U> = U

Source§

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

Source§

impl Bind for i16

Source§

type Elm = i16

Source§

type M<U> = U

Source§

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

Source§

impl Bind for i32

Source§

type Elm = i32

Source§

type M<U> = U

Source§

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

Source§

impl Bind for i64

Source§

type Elm = i64

Source§

type M<U> = U

Source§

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

Source§

impl Bind for i128

Source§

type Elm = i128

Source§

type M<U> = U

Source§

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

Source§

impl Bind for isize

Source§

type Elm = isize

Source§

type M<U> = U

Source§

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

Source§

impl Bind for u8

Source§

type Elm = u8

Source§

type M<U> = U

Source§

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

Source§

impl Bind for u16

Source§

type Elm = u16

Source§

type M<U> = U

Source§

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

Source§

impl Bind for u32

Source§

type Elm = u32

Source§

type M<U> = U

Source§

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

Source§

impl Bind for u64

Source§

type Elm = u64

Source§

type M<U> = U

Source§

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

Source§

impl Bind for u128

Source§

type Elm = u128

Source§

type M<U> = U

Source§

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

Source§

impl Bind for usize

Source§

type Elm = usize

Source§

type M<U> = U

Source§

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

Source§

impl<A> Bind for Option<A>

Source§

type Elm = A

Source§

type M<U> = Option<U>

Source§

fn bind<B, F>(self, f: F) -> Self::M<B>
where F: FnOnce(&Self::Elm) -> Self::M<B>,

Source§

impl<A> Bind for Box<A>

Source§

type Elm = A

Source§

type M<U> = Box<U>

Source§

fn bind<B, F>(self, f: F) -> Self::M<B>
where F: FnOnce(&Self::Elm) -> Self::M<B>,

Source§

impl<A> Bind for Rc<A>

Source§

type Elm = A

Source§

type M<U> = Rc<U>

Source§

fn bind<B, F>(self, f: F) -> Self::M<B>
where F: FnOnce(&Self::Elm) -> Self::M<B>,

Source§

impl<A> Bind for Vec<A>

Source§

type Elm = A

Source§

type M<U> = Vec<U>

Source§

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

Source§

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

Source§

type Elm = A

Source§

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

Source§

fn bind<B, F>(self, f: F) -> Self::M<B>
where F: FnOnce(&Self::Elm) -> Self::M<B>,

Implementors§