Trait MapInplace

Source
pub trait MapInplace<T> {
    type Cont<_T: ?Sized>;

    // Required method
    fn map_inplace<F>(&mut self, rhs: F) -> &mut Self::Cont<T>
       where F: FnMut(&mut T);
}

Required Associated Types§

Source

type Cont<_T: ?Sized>

Required Methods§

Source

fn map_inplace<F>(&mut self, rhs: F) -> &mut Self::Cont<T>
where F: FnMut(&mut T),

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.

Implementors§