pub unsafe trait IsContiguous { }
Expand description

Marker trait indicating that a storage 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, R, C> IsContiguous for SliceStorage<'a, T, R, C, Const<1>, R>where R: DimName, C: Dim + IsNotStaticOne,

source§

impl<'a, T, R, C> IsContiguous for SliceStorageMut<'a, T, R, C, Const<1>, R>where R: DimName, C: Dim + IsNotStaticOne,

source§

impl<'a, T, R, CStride> IsContiguous for SliceStorage<'a, T, R, Const<1>, Const<1>, CStride>where R: Dim, CStride: Dim,

source§

impl<'a, T, R, CStride> IsContiguous for SliceStorageMut<'a, T, R, Const<1>, Const<1>, CStride>where R: Dim, CStride: Dim,

source§

impl<T, R, C> IsContiguous for VecStorage<T, R, C>where R: Dim, C: Dim,

source§

impl<T, const R: usize, const C: usize> IsContiguous for ArrayStorage<T, R, C>