Skip to main content

MapBoxInPlace

Trait MapBoxInPlace 

Source
pub trait MapBoxInPlace<A> {
    // Required methods
    fn map<B, F: FnOnce(A) -> B>(self, f: F) -> Box<B>;
    fn map_in_place<B, F: FnOnce(A) -> B>(self, f: F) -> Box<B>;
}

Required Methods§

Source

fn map<B, F: FnOnce(A) -> B>(self, f: F) -> Box<B>

Source

fn map_in_place<B, F: FnOnce(A) -> B>(self, f: F) -> Box<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> MapBoxInPlace<A> for Box<A>

Source§

fn map<B, F: FnOnce(A) -> B>(self, f: F) -> Box<B>

Source§

fn map_in_place<B, M: FnOnce(A) -> B>(self, f: M) -> Box<B>

Implementors§