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§
unsafe fn to_mut_ptr(&mut self) -> *mut Self
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.