Trait RefMut

Source
pub trait RefMut {
    // Provided methods
    unsafe fn to_mut_ptr(&mut self) -> *mut Self { ... }
    fn modify(&mut self, f: impl FnOnce(Self) -> Self)
       where Self: Sized { ... }
}

Provided Methods§

Source

unsafe fn to_mut_ptr(&mut self) -> *mut Self

Source

fn modify(&mut self, f: impl FnOnce(Self) -> Self)
where Self: Sized,

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§

Source§

impl<T> RefMut for T