Trait faer_core::zip::MatIndex

source ·
pub unsafe trait MatIndex<'a, _Outlives = &'a Self>: MaybeContiguous {
    type Item;

    // Required methods
    unsafe fn get_unchecked(&'a mut self, index: Self::Index) -> Self::Item;
    unsafe fn get_from_slice_unchecked(
        slice: &'a mut Self::Slice,
        idx: usize
    ) -> Self::Item;
    fn is_contiguous(&self) -> bool;
    fn preferred_layout(&self) -> Self::LayoutTransform;
    fn with_layout(self, layout: Self::LayoutTransform) -> Self;
}

Required Associated Types§

Required Methods§

source

unsafe fn get_unchecked(&'a mut self, index: Self::Index) -> Self::Item

source

unsafe fn get_from_slice_unchecked( slice: &'a mut Self::Slice, idx: usize ) -> Self::Item

source

fn is_contiguous(&self) -> bool

source

fn preferred_layout(&self) -> Self::LayoutTransform

source

fn with_layout(self, layout: Self::LayoutTransform) -> Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, E: Entity> MatIndex<'a> for ColMut<'_, E>

§

type Item = ReadWrite<'a, E>

source§

impl<'a, E: Entity> MatIndex<'a> for ColRef<'_, E>

§

type Item = Read<'a, E>

source§

impl<'a, E: Entity> MatIndex<'a> for MatMut<'_, E>

§

type Item = ReadWrite<'a, E>

source§

impl<'a, E: Entity> MatIndex<'a> for MatRef<'_, E>

§

type Item = Read<'a, E>

source§

impl<'a, E: Entity> MatIndex<'a> for RowMut<'_, E>

§

type Item = ReadWrite<'a, E>

source§

impl<'a, E: Entity> MatIndex<'a> for RowRef<'_, E>

§

type Item = Read<'a, E>

source§

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

§

type Item = Zip<<Head as MatIndex<'a>>::Item, <Tail as MatIndex<'a>>::Item>

source§

impl<'a, Rows: Copy + Eq, Cols: Copy + Eq, Mat: MatIndex<'a, Rows = Rows, Cols = Cols>> MatIndex<'a> for LastEq<Rows, Cols, Mat>

§

type Item = Last<<Mat as MatIndex<'a>>::Item>