pub struct LastEq<Rows, Cols, Mat>(pub Mat, pub PhantomData<(Rows, Cols)>);Expand description
single matrix
Tuple Fields§
§0: Mat§1: PhantomData<(Rows, Cols)>Implementations§
Source§impl<Rows: Shape, Cols: Shape, M: MatIndex<LayoutTransform = MatLayoutTransform, Rows = Rows, Cols = Cols, Index = (Idx<Rows>, Idx<Cols>)>> LastEq<Rows, Cols, M>
impl<Rows: Shape, Cols: Shape, M: MatIndex<LayoutTransform = MatLayoutTransform, Rows = Rows, Cols = Cols, Index = (Idx<Rows>, Idx<Cols>)>> LastEq<Rows, Cols, M>
Sourcepub fn for_each(self, f: impl FnMut(<Self as MatIndex>::Item))
pub fn for_each(self, f: impl FnMut(<Self as MatIndex>::Item))
applies f to each element of self
Sourcepub fn for_each_with_index(
self,
f: impl FnMut(Idx<Rows>, Idx<Cols>, <Self as MatIndex>::Item),
)
pub fn for_each_with_index( self, f: impl FnMut(Idx<Rows>, Idx<Cols>, <Self as MatIndex>::Item), )
applies f to each element of self, while passing the indices of the position of the
current element
Sourcepub fn for_each_triangular_lower_with_index(
self,
diag: Diag,
f: impl FnMut(Idx<Rows>, Idx<Cols>, <Self as MatIndex>::Item),
)
pub fn for_each_triangular_lower_with_index( self, diag: Diag, f: impl FnMut(Idx<Rows>, Idx<Cols>, <Self as MatIndex>::Item), )
applies f to each element of the lower triangular half of self, while passing the
indices of the position of the current element
diag specifies whether the diagonal should be included or excluded
Sourcepub fn for_each_triangular_upper_with_index(
self,
diag: Diag,
f: impl FnMut(Idx<Rows>, Idx<Cols>, <Self as MatIndex>::Item),
)
pub fn for_each_triangular_upper_with_index( self, diag: Diag, f: impl FnMut(Idx<Rows>, Idx<Cols>, <Self as MatIndex>::Item), )
applies f to each element of the upper triangular half of self, while passing the
indices of the position of the current element
diag specifies whether the diagonal should be included or excluded
Sourcepub fn for_each_triangular_lower(
self,
diag: Diag,
f: impl FnMut(<Self as MatIndex>::Item),
)
pub fn for_each_triangular_lower( self, diag: Diag, f: impl FnMut(<Self as MatIndex>::Item), )
applies f to each element of the lower triangular half of self
diag specifies whether the diagonal should be included or excluded
Sourcepub fn for_each_triangular_upper(
self,
diag: Diag,
f: impl FnMut(<Self as MatIndex>::Item),
)
pub fn for_each_triangular_upper( self, diag: Diag, f: impl FnMut(<Self as MatIndex>::Item), )
applies f to each element of the upper triangular half of self
diag specifies whether the diagonal should be included or excluded
Source§impl<Rows: Shape, M: MatIndex<LayoutTransform = VecLayoutTransform, Rows = Rows, Cols = (), Index = Idx<Rows>>> LastEq<Rows, (), M>
impl<Rows: Shape, M: MatIndex<LayoutTransform = VecLayoutTransform, Rows = Rows, Cols = (), Index = Idx<Rows>>> LastEq<Rows, (), M>
Sourcepub fn for_each(self, f: impl FnMut(<Self as MatIndex>::Item))
pub fn for_each(self, f: impl FnMut(<Self as MatIndex>::Item))
applies f to each element of self
Sourcepub fn for_each_with_index(
self,
f: impl FnMut(Idx<Rows>, <Self as MatIndex>::Item),
)
pub fn for_each_with_index( self, f: impl FnMut(Idx<Rows>, <Self as MatIndex>::Item), )
applies f to each element of self, while passing the indices of the position of the
current element
Source§impl<Cols: Shape, M: MatIndex<LayoutTransform = VecLayoutTransform, Rows = (), Cols = Cols, Index = Idx<Cols>>> LastEq<(), Cols, M>
impl<Cols: Shape, M: MatIndex<LayoutTransform = VecLayoutTransform, Rows = (), Cols = Cols, Index = Idx<Cols>>> LastEq<(), Cols, M>
Sourcepub fn for_each(self, f: impl FnMut(<Self as MatIndex>::Item))
pub fn for_each(self, f: impl FnMut(<Self as MatIndex>::Item))
applies f to each element of self
Sourcepub fn for_each_with_index(
self,
f: impl FnMut(Idx<Cols>, <Self as MatIndex>::Item),
)
pub fn for_each_with_index( self, f: impl FnMut(Idx<Cols>, <Self as MatIndex>::Item), )
applies f to each element of self, while passing the indices of the position of the
current element
Trait Implementations§
Source§impl<Rows: Copy + Eq + Debug, Cols: Copy + Eq + Debug, Mat: MatIndex<Rows = Rows, Cols = Cols>> MatIndex for LastEq<Rows, Cols, Mat>
impl<Rows: Copy + Eq + Debug, Cols: Copy + Eq + Debug, Mat: MatIndex<Rows = Rows, Cols = Cols>> MatIndex for LastEq<Rows, Cols, Mat>
Source§type Dyn = LastEq<<<Mat as MatIndex>::Dyn as MatIndex>::Rows, <<Mat as MatIndex>::Dyn as MatIndex>::Cols, <Mat as MatIndex>::Dyn>
type Dyn = LastEq<<<Mat as MatIndex>::Dyn as MatIndex>::Rows, <<Mat as MatIndex>::Dyn as MatIndex>::Cols, <Mat as MatIndex>::Dyn>
Source§type LayoutTransform = <Mat as MatIndex>::LayoutTransform
type LayoutTransform = <Mat as MatIndex>::LayoutTransform
type Slice = Last<<Mat as MatIndex>::Slice>
Source§unsafe fn get_slice_unchecked<'a>(
this: &'a mut Self,
idx: Self::Index,
n_elems: usize,
) -> <Self::Slice as SliceFamily<'a, Self::Item>>::Slice
unsafe fn get_slice_unchecked<'a>( this: &'a mut Self, idx: Self::Index, n_elems: usize, ) -> <Self::Slice as SliceFamily<'a, Self::Item>>::Slice
n_elemsSource§unsafe fn from_dyn_idx(idx: <Self::Dyn as MatIndex>::Index) -> Self::Index
unsafe fn from_dyn_idx(idx: <Self::Dyn as MatIndex>::Index) -> Self::Index
Source§unsafe fn get_unchecked(this: &mut Self, index: Self::Index) -> Self::Item
unsafe fn get_unchecked(this: &mut Self, index: Self::Index) -> Self::Item
Source§unsafe fn next_unchecked<'a>(
slice: &mut <Self::Slice as SliceFamily<'a, Self::Item>>::Slice,
) -> Self::Item
unsafe fn next_unchecked<'a>( slice: &mut <Self::Slice as SliceFamily<'a, Self::Item>>::Slice, ) -> Self::Item
Source§fn is_contiguous(this: &Self) -> bool
fn is_contiguous(this: &Self) -> bool
Source§fn preferred_layout(this: &Self) -> Self::LayoutTransform
fn preferred_layout(this: &Self) -> Self::LayoutTransform
Source§fn with_layout(this: Self, layout: Self::LayoutTransform) -> Self::Dyn
fn with_layout(this: Self, layout: Self::LayoutTransform) -> Self::Dyn
impl<Rows: Copy, Cols: Copy, Mat: Copy> Copy for LastEq<Rows, Cols, Mat>
Auto Trait Implementations§
impl<Rows, Cols, Mat> Freeze for LastEq<Rows, Cols, Mat>where
Mat: Freeze,
impl<Rows, Cols, Mat> RefUnwindSafe for LastEq<Rows, Cols, Mat>
impl<Rows, Cols, Mat> Send for LastEq<Rows, Cols, Mat>
impl<Rows, Cols, Mat> Sync for LastEq<Rows, Cols, Mat>
impl<Rows, Cols, Mat> Unpin for LastEq<Rows, Cols, Mat>
impl<Rows, Cols, Mat> UnwindSafe for LastEq<Rows, Cols, Mat>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more