pub trait ToMutPtr {
type Target: ?Sized;
// Required method
fn to_mut_ptr(&self) -> *mut Self::Target;
}Expand description
Extension trait for references to obtain a mutable raw pointer.
Required Associated Types§
Required Methods§
Sourcefn to_mut_ptr(&self) -> *mut Self::Target
fn to_mut_ptr(&self) -> *mut Self::Target
Casts the reference to a mutable raw pointer.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".