SliceArrayMut

Type Alias SliceArrayMut 

Source
pub type SliceArrayMut<'a, Item, const NDIM: usize> = Array<BaseArray<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, const NDIM: usize> SliceArrayMut<'a, Item, NDIM>
where Item: Copy + Default,

Source

pub fn from_shape(slice: &'a mut [Item], shape: [usize; NDIM]) -> Self

Create a new array from mutable slice with a given shape.