[−][src]Struct const_alg::Matrix
Matrix represents an N x M
matrix stored in row-major order
So when you go to make it, you can just do
Matrix( [[0, 1, 2], [3, 4, 5]] )
And Rust will take care of the rest!
Methods
impl<T, const N: usize, const M: usize> Matrix<T, { N }, { M }>
[src]
ⓘImportant traits for IntoRows<T, { N }, { M }>pub fn into_rows(self) -> IntoRows<T, { N }, { M }>
[src]
Consumes the matrix and iterates over its rows
ⓘImportant traits for IntoCols<T, { N }, { M }>pub fn into_cols(self) -> IntoCols<T, { N }, { M }>
[src]
Consumes the matrix and iterates over its columns
ⓘImportant traits for RowsMut<'a, T, { N }, { M }>pub fn rows_mut(&mut self) -> RowsMut<T, { N }, { M }>
[src]
iterates over unique references to rows of a matrix
ⓘImportant traits for ColsMut<'a, T, { N }, { M }>pub fn cols_mut(&mut self) -> ColsMut<T, { N }, { M }>
[src]
iterates over unique references to columns of a matrix
ⓘImportant traits for Rows<'a, T, { N }, { M }>pub fn rows(&self) -> Rows<T, { N }, { M }>
[src]
iterates over shared references to rows of a matrix
ⓘImportant traits for Cols<'a, T, { N }, { M }>pub fn cols(&self) -> Cols<T, { N }, { M }>
[src]
iterates over shared references to columns of a matrix
impl<T, const N: usize, const M: usize> Matrix<T, { N }, { M }>
[src]
pub fn T(self) -> Matrix<T, { M }, { N }>
[src]
Transposes the matrix,
This is some sugar for transpose
pub fn transpose(self) -> Matrix<T, { M }, { N }>
[src]
Does the matrix transpose of the given matrix
Every element matrix[(row, col)]
will be taken to output[(col, row)]
pub fn get(&self, row: usize, col: usize) -> Option<&T>
[src]
Gets an element from the matrix
If the row or col is out of bounds, None is returned
pub fn get_mut(&mut self, row: usize, col: usize) -> Option<&mut T>
[src]
Gets an element from the matrix
If the row or col is out of bounds, None is returned
pub unsafe fn get_unchecked(&self, row: usize, col: usize) -> &T
[src]
Gets an element from the matrix
If the row or col is out of bounds, this causes UB on release mode, and panics on debug mode
pub unsafe fn get_unchecked_mut(&mut self, row: usize, col: usize) -> &mut T
[src]
Gets an element from the matrix
If the row or col is out of bounds, this causes UB on release mode, and panics on debug mode
pub fn get_all_mut<const P: usize>(
&mut self,
pos: [(usize, usize); P]
) -> [Option<&mut T>; P]
[src]
&mut self,
pos: [(usize, usize); P]
) -> [Option<&mut T>; P]
Get's all of the elements specified by the array,
If there are any duplicates, the first one will return a value and the rest will be None,
If any pos is out of bounds, it will result in None
Example,
let m = Matrix( [[0, 1, 2], [3, 4, 5]] ); assert_eq!(m.get_all_mut([(0, 0), (0, 2), (2, 0), (0, 0)]), [Some(&mut 0), Some(&mut 2), None, None]);
Trait Implementations
impl<T, U, V, F, const N: usize, const M: usize> ZipWith<Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, U) -> V,
[src]
F: FnMut(T, U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(self, other: Matrix<U, { N }, { M }>, f: F) -> Self::Output
[src]
impl<'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b mut Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, &'b mut U) -> V,
[src]
F: FnMut(T, &'b mut U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, &'b U) -> V,
[src]
F: FnMut(T, &'b U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<'a, T, U, V, F, const N: usize, const M: usize> ZipWith<Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, U) -> V,
[src]
F: FnMut(&'a mut T, U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(self, other: Matrix<U, { N }, { M }>, f: F) -> Self::Output
[src]
impl<'a, 'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b mut Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, &'b mut U) -> V,
[src]
F: FnMut(&'a mut T, &'b mut U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<'a, 'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, &'b U) -> V,
[src]
F: FnMut(&'a mut T, &'b U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<'a, T, U, V, F, const N: usize, const M: usize> ZipWith<Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, U) -> V,
[src]
F: FnMut(&'a T, U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(self, other: Matrix<U, { N }, { M }>, f: F) -> Self::Output
[src]
impl<'a, 'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b mut Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, &'b mut U) -> V,
[src]
F: FnMut(&'a T, &'b mut U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<'a, 'b, T, U, V, F, const N: usize, const M: usize> ZipWith<&'b Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, &'b U) -> V,
[src]
F: FnMut(&'a T, &'b U) -> V,
type Output = Matrix<V, { N }, { M }>
default fn zip_with(
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
impl<T, U, F, const N: usize, const M: usize> ZipWith<Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, U),
[src]
F: FnMut(T, U),
impl<'b, T, U, F, const N: usize, const M: usize> ZipWith<&'b mut Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, &'b mut U),
[src]
F: FnMut(T, &'b mut U),
default fn zip_with(
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
type Output
impl<'b, T, U, F, const N: usize, const M: usize> ZipWith<&'b Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, &'b U),
[src]
F: FnMut(T, &'b U),
default fn zip_with(
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
type Output
impl<'a, T, U, F, const N: usize, const M: usize> ZipWith<Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, U),
[src]
F: FnMut(&'a mut T, U),
impl<'a, 'b, T, U, F, const N: usize, const M: usize> ZipWith<&'b mut Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, &'b mut U),
[src]
F: FnMut(&'a mut T, &'b mut U),
default fn zip_with(
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
type Output
impl<'a, 'b, T, U, F, const N: usize, const M: usize> ZipWith<&'b Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, &'b U),
[src]
F: FnMut(&'a mut T, &'b U),
default fn zip_with(
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
type Output
impl<'a, T, U, F, const N: usize, const M: usize> ZipWith<Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, U),
[src]
F: FnMut(&'a T, U),
impl<'a, 'b, T, U, F, const N: usize, const M: usize> ZipWith<&'b mut Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, &'b mut U),
[src]
F: FnMut(&'a T, &'b mut U),
default fn zip_with(
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b mut Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
type Output
impl<'a, 'b, T, U, F, const N: usize, const M: usize> ZipWith<&'b Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, &'b U),
[src]
F: FnMut(&'a T, &'b U),
default fn zip_with(
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
[src]
self,
other: &'b Matrix<U, { N }, { M }>,
f: F
) -> Self::Output
type Output
impl<F, T, U, const N: usize, const M: usize> Map<F> for Matrix<T, { N }, { M }> where
F: FnMut(T) -> U,
[src]
F: FnMut(T) -> U,
impl<F, T, const N: usize, const M: usize> Map<F> for Matrix<T, { N }, { M }> where
F: FnMut(T),
[src]
F: FnMut(T),
impl<'a, F, T, U, const N: usize, const M: usize> Map<F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T) -> U,
[src]
F: FnMut(&'a mut T) -> U,
impl<'a, F, T, U, const N: usize, const M: usize> Map<F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T) -> U,
[src]
F: FnMut(&'a T) -> U,
impl<'a, T, F, const N: usize, const M: usize> Map<F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T),
[src]
F: FnMut(&'a mut T),
impl<'a, 'b, T, F, const N: usize, const M: usize> Map<F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T),
[src]
F: FnMut(&'a T),
impl<T, F, const N: usize, const M: usize> ForEach<F> for Matrix<T, { N }, { M }> where
F: FnMut(T),
[src]
F: FnMut(T),
impl<'a, T, F, const N: usize, const M: usize> ForEach<F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T),
[src]
F: FnMut(&'a mut T),
impl<'a, T, F, const N: usize, const M: usize> ForEach<F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T),
[src]
F: FnMut(&'a T),
impl<T, U, F, const N: usize, const M: usize> ForBoth<Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, U),
[src]
F: FnMut(T, U),
impl<'b, T, U, F, const N: usize, const M: usize> ForBoth<&'b mut Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, &'b mut U),
[src]
F: FnMut(T, &'b mut U),
impl<'b, T, U, F, const N: usize, const M: usize> ForBoth<&'b Matrix<U, N, M>, F> for Matrix<T, { N }, { M }> where
F: FnMut(T, &'b U),
[src]
F: FnMut(T, &'b U),
impl<'a, T, U, F, const N: usize, const M: usize> ForBoth<Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, U),
[src]
F: FnMut(&'a mut T, U),
impl<'a, 'b, T, U, F, const N: usize, const M: usize> ForBoth<&'b mut Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, &'b mut U),
[src]
F: FnMut(&'a mut T, &'b mut U),
impl<'a, 'b, T, U, F, const N: usize, const M: usize> ForBoth<&'b Matrix<U, N, M>, F> for &'a mut Matrix<T, { N }, { M }> where
F: FnMut(&'a mut T, &'b U),
[src]
F: FnMut(&'a mut T, &'b U),
impl<'a, T, U, F, const N: usize, const M: usize> ForBoth<Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, U),
[src]
F: FnMut(&'a T, U),
impl<'a, 'b, T, U, F, const N: usize, const M: usize> ForBoth<&'b mut Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, &'b mut U),
[src]
F: FnMut(&'a T, &'b mut U),
impl<'a, 'b, T, U, F, const N: usize, const M: usize> ForBoth<&'b Matrix<U, N, M>, F> for &'a Matrix<T, { N }, { M }> where
F: FnMut(&'a T, &'b U),
[src]
F: FnMut(&'a T, &'b U),
impl<T: PartialEq, const N: usize, const M: usize> PartialEq<Matrix<T, N, M>> for Matrix<T, { N }, { M }>
[src]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T: Copy, const N: usize, const M: usize> Copy for Matrix<T, N, M>
[src]
impl<T: Eq, const N: usize, const M: usize> Eq for Matrix<T, { N }, { M }>
[src]
impl<T, const N: usize, const M: usize> From<[[T; M]; N]> for Matrix<T, { N }, { M }>
[src]
impl<T, const N: usize, const M: usize> Into<[[T; M]; N]> for Matrix<T, { N }, { M }>
[src]
impl<T: Clone, const N: usize, const M: usize> Clone for Matrix<T, N, M>
[src]
fn clone(&self) -> Matrix<T, N, M>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T, const N: usize, const M: usize> Deref for Matrix<T, { N }, { M }>
[src]
type Target = [[T; M]; N]
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<T, const N: usize, const M: usize> DerefMut for Matrix<T, { N }, { M }>
[src]
impl<T: Hash, const N: usize, const M: usize> Hash for Matrix<T, { N }, { M }>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T, const N: usize, const M: usize> Add<Matrix<T, N, M>> for Matrix<T, { N }, { M }> where
T: Add<Output = T>,
[src]
T: Add<Output = T>,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl<T, const N: usize, const M: usize> Sub<Matrix<T, N, M>> for Matrix<T, { N }, { M }> where
T: Sub<Output = T>,
[src]
T: Sub<Output = T>,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl<'a, 'b, T, const N: usize, const M: usize, const O: usize> Mul<&'b Matrix<T, M, O>> for &'a Matrix<T, { N }, { M }> where
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
[src]
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
type Output = Matrix<T, { N }, { O }>
The resulting type after applying the *
operator.
fn mul(self, other: &'b Matrix<T, { M }, { O }>) -> Matrix<T, { N }, { O }>
[src]
impl<'a, 'b, T, const N: usize, const M: usize, const O: usize> Mul<&'b mut Matrix<T, M, O>> for &'a Matrix<T, { N }, { M }> where
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
[src]
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
type Output = Matrix<T, { N }, { O }>
The resulting type after applying the *
operator.
fn mul(self, other: &'b mut Matrix<T, { M }, { O }>) -> Matrix<T, { N }, { O }>
[src]
impl<'a, 'b, T, const N: usize, const M: usize, const O: usize> Mul<Matrix<T, M, O>> for &'a Matrix<T, { N }, { M }> where
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
[src]
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
type Output = Matrix<T, { N }, { O }>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix<T, { M }, { O }>) -> Matrix<T, { N }, { O }>
[src]
impl<'a, 'b, T, const N: usize, const M: usize, const O: usize> Mul<&'b Matrix<T, M, O>> for &'a mut Matrix<T, { N }, { M }> where
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
[src]
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
type Output = Matrix<T, { N }, { O }>
The resulting type after applying the *
operator.
fn mul(self, other: &'b Matrix<T, { M }, { O }>) -> Matrix<T, { N }, { O }>
[src]
impl<'a, 'b, T, const N: usize, const M: usize, const O: usize> Mul<&'b mut Matrix<T, M, O>> for &'a mut Matrix<T, { N }, { M }> where
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
[src]
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
type Output = Matrix<T, { N }, { O }>
The resulting type after applying the *
operator.
fn mul(self, other: &'b mut Matrix<T, { M }, { O }>) -> Matrix<T, { N }, { O }>
[src]
impl<'a, 'b, T, const N: usize, const M: usize, const O: usize> Mul<Matrix<T, M, O>> for &'a mut Matrix<T, { N }, { M }> where
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
[src]
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
type Output = Matrix<T, { N }, { O }>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix<T, { M }, { O }>) -> Matrix<T, { N }, { O }>
[src]
impl<'a, 'b, T, const N: usize, const M: usize, const O: usize> Mul<&'b Matrix<T, M, O>> for Matrix<T, { N }, { M }> where
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
[src]
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
type Output = Matrix<T, { N }, { O }>
The resulting type after applying the *
operator.
fn mul(self, other: &'b Matrix<T, { M }, { O }>) -> Matrix<T, { N }, { O }>
[src]
impl<'a, 'b, T, const N: usize, const M: usize, const O: usize> Mul<&'b mut Matrix<T, M, O>> for Matrix<T, { N }, { M }> where
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
[src]
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
type Output = Matrix<T, { N }, { O }>
The resulting type after applying the *
operator.
fn mul(self, other: &'b mut Matrix<T, { M }, { O }>) -> Matrix<T, { N }, { O }>
[src]
impl<'a, 'b, T, const N: usize, const M: usize, const O: usize> Mul<Matrix<T, M, O>> for Matrix<T, { N }, { M }> where
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
[src]
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
type Output = Matrix<T, { N }, { O }>
The resulting type after applying the *
operator.
fn mul(self, other: Matrix<T, { M }, { O }>) -> Matrix<T, { N }, { O }>
[src]
impl<T, const N: usize, const M: usize> Mul<T> for Matrix<T, { N }, { M }> where
T: Mul<Output = T> + Clone,
[src]
T: Mul<Output = T> + Clone,
type Output = Matrix<T, { N }, { M }>
The resulting type after applying the *
operator.
fn mul(self, other: T) -> Matrix<T, { N }, { M }>
[src]
impl<T, const N: usize, const M: usize> Div<T> for Matrix<T, { N }, { M }> where
T: Div<Output = T> + Clone,
[src]
T: Div<Output = T> + Clone,
type Output = Matrix<T, { N }, { M }>
The resulting type after applying the /
operator.
fn div(self, other: T) -> Matrix<T, { N }, { M }>
[src]
impl<T, const N: usize, const M: usize> Neg for Matrix<T, { N }, { M }> where
T: Neg,
[src]
T: Neg,
type Output = Matrix<T::Output, { N }, { M }>
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl<T, const N: usize, const M: usize> AddAssign<Matrix<T, N, M>> for Matrix<T, { N }, { M }> where
T: AddAssign,
[src]
T: AddAssign,
fn add_assign(&mut self, other: Self)
[src]
impl<T, const N: usize, const M: usize> SubAssign<Matrix<T, N, M>> for Matrix<T, { N }, { M }> where
T: SubAssign,
[src]
T: SubAssign,
fn sub_assign(&mut self, other: Self)
[src]
impl<T, const N: usize> MulAssign<Matrix<T, N, N>> for Matrix<T, { N }, { N }> where
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
[src]
T: Add<Output = T> + Mul<Output = T> + Zero + Clone,
fn mul_assign(&mut self, other: Self)
[src]
impl<T, const N: usize, const M: usize> MulAssign<T> for Matrix<T, { N }, { M }> where
T: MulAssign + Clone,
[src]
T: MulAssign + Clone,
fn mul_assign(&mut self, other: T)
[src]
impl<T, const N: usize, const M: usize> DivAssign<T> for Matrix<T, { N }, { M }> where
T: DivAssign + Clone,
[src]
T: DivAssign + Clone,
fn div_assign(&mut self, other: T)
[src]
impl<T, const N: usize, const M: usize> Index<(usize, usize)> for Matrix<T, { N }, { M }>
[src]
type Output = T
The returned type after indexing.
fn index(&self, (row, col): (usize, usize)) -> &T
[src]
impl<T, const N: usize, const M: usize> IndexMut<(usize, usize)> for Matrix<T, { N }, { M }>
[src]
impl<T: Debug, const N: usize, const M: usize> Debug for Matrix<T, { N }, { M }>
[src]
impl<T: Zero, const N: usize, const M: usize> Zero for Matrix<T, { N }, { M }>
[src]
impl<T: PartialEq + Zero + One, const N: usize> One for Matrix<T, { N }, { N }> where
Self: Mul<Output = Self>,
[src]
Self: Mul<Output = Self>,
Auto Trait Implementations
impl<const N: usize, const M: usize, T> Send for Matrix<T, N, M> where
T: Send,
T: Send,
impl<const N: usize, const M: usize, T> Unpin for Matrix<T, N, M> where
T: Unpin,
T: Unpin,
impl<const N: usize, const M: usize, T> Sync for Matrix<T, N, M> where
T: Sync,
T: Sync,
impl<const N: usize, const M: usize, T> UnwindSafe for Matrix<T, N, M> where
T: UnwindSafe,
T: UnwindSafe,
impl<const N: usize, const M: usize, T> RefUnwindSafe for Matrix<T, N, M> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,