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§
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
Object Safety§
This trait is not object safe.