pub type SliceArrayMut<'a, Item, const NDIM: usize> = Array<Item, BaseArray<Item, SliceContainerMut<'a, Item>, NDIM>, NDIM>;Expand description
A mutable dynamically allocated array from a data slice.
Aliased Type§
pub struct SliceArrayMut<'a, Item, const NDIM: usize>(/* private fields */);Implementations§
Source§impl<'a, Item: RlstBase, const NDIM: usize> SliceArrayMut<'a, Item, NDIM>
impl<'a, Item: RlstBase, const NDIM: usize> SliceArrayMut<'a, Item, NDIM>
Sourcepub fn from_shape(slice: &'a mut [Item], shape: [usize; NDIM]) -> Self
pub fn from_shape(slice: &'a mut [Item], shape: [usize; NDIM]) -> Self
Create a new array from a slice with a given shape.
The stride is automatically assumed to be column major.