pub unsafe trait MakeMut: Sized {
type T: ?Sized;
// Required method
fn make_mut(this: &mut Self) -> &mut Self::T;
// Provided method
fn to_unique(this: Self) -> Self { ... }
}Expand description
Required Associated Types§
Required Methods§
Sourcefn make_mut(this: &mut Self) -> &mut Self::T
fn make_mut(this: &mut Self) -> &mut Self::T
Like Rc::make_mut
Provided Methods§
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.