/// Get a mutable pointer to the wrapped value.
///
/// # Panics
///
/// This function will panic if the access is not valid under the Rust memory
/// model.
Get a mutable pointer to the wrapped value.
Get a mutable pointer to the wrapped value .
pub fn with_mut<F, R>(&self, f: F) -> R
    where
        F: FnOnce(*mut T) -> R,
    {
        self.check_mut();
        self.with_mut_unchecked(f)
    }
pub fn with_mut < F , R > ( & self , f : F ) -> R where F : FnOnce ( * mut T ) -> R , { self . check_mut ( ) ; self . with_mut_unchecked ( f ) }
Get a mutable pointer to the wrapped value.
Get a mutable pointer to the wrapped value .
&self
f
F
panics
This function will panic if the access is not valid under the Rust memory
model.
This function will panic if the access is not valid under the Rust memory model .