pub fn to_mut(&mut self) -> Option<&mut A> {
        if self.ref_count() > 1 {
            None
        } else {
            Some(&mut *self.data)
        }
    }
/// Returns a mutable reference to the array if the caller has exclusive access,
/// or `None` otherwise.
Returns a mutable reference to the array if the caller has exclusive access,
or `None` otherwise.
Returns a mutable reference to the array if the caller has exclusive access or ` None ` otherwise .
pub fn to_mut(&mut self) -> Option<&mut A> {
        if self.ref_count() > 1 {
            None
        } else {
            Some(&mut *self.data)
        }
    }
pub fn to_mut ( & mut self ) -> Option < & mut A > { if self . ref_count ( ) > 1 { None } else { Some ( & mut * self . data ) } }
Returns a mutable reference to the array if the caller has exclusive access,
or `None` otherwise.
Returns a mutable reference to the array if the caller has exclusive access or ` None ` otherwise .
&mut self