DerefMut
A trait for dereferencing in mutable contexts.This trait is similar to Deref
but specifically handles cases where the value accessed is mutable. Despite its name, DerefMut
does NOT allow modifying the inner value - it only indicates that the container itself is mutable. # Examples
Fully qualified path: core::ops::deref::DerefMut
pub trait DerefMut<T>
Trait functions
deref_mut
Returns the dereferenced value.
Fully qualified path: core::ops::deref::DerefMut::deref_mut
fn deref_mut(ref self: T) -> Self::Target
Trait types
Target
The type of the dereferenced value.
Fully qualified path: core::ops::deref::DerefMut::Target
type Target;