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;
}
Expand description
Zipped matrix views.
Required Associated Types§
type Item
type Item
Item produced by the zipped views.
Required Methods§
unsafe fn get_unchecked(&'a mut self, index: Self::Index) -> Self::Item
unsafe fn get_unchecked(&'a mut self, index: Self::Index) -> Self::Item
Get the item at the given index, skipping bound checks.
unsafe fn get_from_slice_unchecked(
slice: &'a mut Self::Slice,
idx: usize,
) -> Self::Item
unsafe fn get_from_slice_unchecked( slice: &'a mut Self::Slice, idx: usize, ) -> Self::Item
Get the item at the given slice position, skipping bound checks.
fn is_contiguous(&self) -> bool
fn is_contiguous(&self) -> bool
Checks if the zipped matrices are contiguous.
fn preferred_layout(&self) -> Self::LayoutTransform
fn preferred_layout(&self) -> Self::LayoutTransform
Computes the preferred iteration layout of the matrices.
fn with_layout(self, layout: Self::LayoutTransform) -> Self
fn with_layout(self, layout: Self::LayoutTransform) -> Self
Applies the layout transformation to the matrices.
Object Safety§
This trait is not object safe.