Trait std::ptr::MutPtrExtStable
[-]
[+]
[src]
pub trait MutPtrExt {
type Target;
unsafe fn as_mut(&self) -> Option<&'a mut <Self as MutPtrExt>::Target>;
}Methods on mutable raw pointers
Required Methods
type Target
unsafe fn as_mut(&self) -> Option<&'a mut <Self as MutPtrExt>::Target>
Returns None if the pointer is null, or else returns a mutable
reference to the value wrapped in Some.
Safety
As with as_ref, this is unsafe because it cannot verify the validity
of the returned pointer.
Implementors
impl<T> MutPtrExt for *mut T