Trait MaybeContiguous

Source
pub unsafe trait MaybeContiguous: MatShape {
    type Index: Copy;
    type Slice;
    type LayoutTransform: Copy;

    // Required method
    unsafe fn get_slice_unchecked(
        &mut self,
        idx: Self::Index,
        n_elems: usize,
    ) -> Self::Slice;
}
Expand description

Zipped matrix views.

Required Associated Types§

Source

type Index: Copy

Indexing type.

Source

type Slice

Contiguous slice type.

Source

type LayoutTransform: Copy

Layout transformation type.

Required Methods§

Source

unsafe fn get_slice_unchecked( &mut self, idx: Self::Index, n_elems: usize, ) -> Self::Slice

Returns slice at index of length n_elems.

Implementors§

Source§

impl<E: Entity> MaybeContiguous for ColMut<'_, E>

Source§

impl<E: Entity> MaybeContiguous for ColRef<'_, E>

Source§

impl<E: Entity> MaybeContiguous for MatMut<'_, E>

Source§

impl<E: Entity> MaybeContiguous for MatRef<'_, E>

Source§

impl<E: Entity> MaybeContiguous for RowMut<'_, E>

Source§

impl<E: Entity> MaybeContiguous for RowRef<'_, E>

Source§

impl<Rows: Copy + Eq, Cols: Copy + Eq, Head: MaybeContiguous<Rows = Rows, Cols = Cols>, Tail: MaybeContiguous<Rows = Rows, Cols = Cols, Index = Head::Index, LayoutTransform = Head::LayoutTransform>> MaybeContiguous for ZipEq<Rows, Cols, Head, Tail>

Source§

impl<Rows: Copy + Eq, Cols: Copy + Eq, Mat: MaybeContiguous<Rows = Rows, Cols = Cols>> MaybeContiguous for LastEq<Rows, Cols, Mat>