pub unsafe trait ContiguousStorageMut<T: Scalar, R: Dim, C: Dim = U1>: ContiguousStorage<T, R, C> + StorageMut<T, R, C> { }
Expand description

A mutable matrix storage that is stored contiguously in memory.

The storage requirement means that for any value of i in [0, nrows * ncols - 1], the value .get_unchecked_linear returns one of the matrix component. This trait is unsafe because failing to comply to this may cause Undefined Behaviors.

Implementors§

source§

impl<'a, T: Scalar, R: Dim, CStride: Dim> ContiguousStorageMut<T, R, Const<1>> for SliceStorageMut<'a, T, R, U1, U1, CStride>

source§

impl<'a, T: Scalar, R: DimName, C: Dim + IsNotStaticOne> ContiguousStorageMut<T, R, C> for SliceStorageMut<'a, T, R, C, U1, R>

source§

impl<T, const R: usize, const C: usize> ContiguousStorageMut<T, Const<R>, Const<C>> for ArrayStorage<T, R, C>where T: Scalar, DefaultAllocator: Allocator<T, Const<R>, Const<C>, Buffer = Self>,

source§

impl<T: Scalar, C: Dim> ContiguousStorageMut<T, Dynamic, C> for VecStorage<T, Dynamic, C>where DefaultAllocator: Allocator<T, Dynamic, C, Buffer = Self>,

source§

impl<T: Scalar, R: DimName> ContiguousStorageMut<T, R, Dynamic> for VecStorage<T, R, Dynamic>where DefaultAllocator: Allocator<T, R, Dynamic, Buffer = Self>,