pub unsafe fn as_slice_mut(&self) -> Result<&mut [T], NotContiguousError> {
        if !self.is_contiguous() {
            Err(NotContiguousError)
        } else {
            Ok(slice::from_raw_parts_mut(self.data(), self.len()))
        }
    }
/// Returns the view of the internal data of `PyArray` as mutable slice.
///
/// # Safety
/// If another reference to the internal data exists(e.g., `&[T]` or `ArrayView`),
/// it might cause undefined behavior.
///
/// In such case, please consider the use of [`as_cell_slice`](#method.as_cell_slice),
Returns the view of the internal data of `PyArray` as mutable slice.
Returns the view of the internal data of ` PyArray ` as mutable slice .
pub unsafe fn as_slice_mut(&self) -> Result<&mut [T], NotContiguousError> {
        if !self.is_contiguous() {
            Err(NotContiguousError)
        } else {
            Ok(slice::from_raw_parts_mut(self.data(), self.len()))
        }
    }
pub unsafe fn as_slice_mut ( & self ) -> Result < & mut [ T ] , NotContiguousError > { if ! self . is_contiguous ( ) { Err ( NotContiguousError ) } else { Ok ( slice :: from_raw_parts_mut ( self . data ( ) , self . len ( ) ) ) } }
Returns the view of the internal data of `PyArray` as mutable slice.
Returns the view of the internal data of ` PyArray ` as mutable slice .
&self
safety
If another reference to the internal data exists,
it might cause undefined behavior.

In such case, please consider the use of [`as_cell_slice`](#method.as_cell_slice).
If another reference to the internal data exists it might cause undefined behavior . In such case please consider the use of [ ` as_cell_slice ` ] ( #method . as_cell_slice ) .