Skip to main content

Extend

Trait Extend 

Source
pub trait Extend<B>: Functor<B> + Sized {
    // Required method
    fn extend<W>(self, f: W) -> <Self as HKT<B>>::Target
       where W: FnOnce(Self) -> B;
}

Required Methods§

Source

fn extend<W>(self, f: W) -> <Self as HKT<B>>::Target
where W: FnOnce(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, E> Extend<B> for Result<A, E>

Source§

fn extend<W>(self, f: W) -> Self::Target
where W: FnOnce(Self) -> B,

Source§

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

Source§

fn extend<W>(self, f: W) -> Self::Target
where W: FnOnce(Self) -> B,

Implementors§