Skip to main content

Extend

Trait Extend 

Source
pub trait Extend<A, B>: Functor<A, B> + Sized {
    // Required method
    fn extend<F>(self, f: F) -> <Self as Lift<A, B>>::Target1
       where F: Fn(Self) -> B;
}
Expand description

Extend is the opposite of Bind.

Required Methods§

Source

fn extend<F>(self, f: F) -> <Self as Lift<A, B>>::Target1
where F: Fn(Self) -> B,

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> Extend<A, B> for Vec<A>
where A: Clone,

Source§

fn extend<F>(self, f: F) -> <Self as Lift<A, B>>::Target1
where F: Fn(Self) -> B,

Implementors§