pub unsafe trait PointerDerefMut: PointerDeref + DerefMut { }
Expand description
Trait that allows to create a mutable reference to the pointed-at object.
§Safety
Implementer must guarantee safety of creating, using and
keeping of mutable reference from the raw pointer returned by
PointerLike::into_ptr
. It must also be allowed to operate on
this raw pointer in the manner of a mutable reference.
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.