Trait nalgebra::base::storage::IsContiguous

source ·
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: Dim, CStride: Dim> IsContiguous for ViewStorage<'a, T, R, U1, U1, CStride>

source§

impl<'a, T, R: Dim, CStride: Dim> IsContiguous for ViewStorageMut<'a, T, R, U1, U1, CStride>

source§

impl<'a, T, R: DimName, C: Dim + IsNotStaticOne> IsContiguous for ViewStorage<'a, T, R, C, U1, R>

source§

impl<'a, T, R: DimName, C: Dim + IsNotStaticOne> IsContiguous for ViewStorageMut<'a, T, R, C, U1, R>

source§

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

source§

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