Struct vectrix::Matrix[][src]

#[repr(transparent)]pub struct Matrix<T, const M: usize, const N: usize> { /* fields omitted */ }

Represents a matrix with constant M rows and constant N columns.

The underlying data is represented as an array and is always stored in column-major order.

See the crate root for usage examples.

Implementations

impl<T> Matrix<T, 1_usize, N>[src]

pub const fn new(x: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Matrix<T, 1_usize, N>[src]

pub const fn new(x: T, y: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Matrix<T, 1_usize, N>[src]

pub const fn new(x: T, y: T, z: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Matrix<T, 1_usize, N>[src]

pub const fn new(x: T, y: T, z: T, w: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Matrix<T, 1_usize, N>[src]

pub const fn new(x: T, y: T, z: T, w: T, a: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Matrix<T, 1_usize, N>[src]

pub const fn new(x: T, y: T, z: T, w: T, a: T, b: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Matrix<T, M, 1_usize>[src]

pub const fn new(x: T, y: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Matrix<T, M, 1_usize>[src]

pub const fn new(x: T, y: T, z: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Matrix<T, M, 1_usize>[src]

pub const fn new(x: T, y: T, z: T, w: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Matrix<T, M, 1_usize>[src]

pub const fn new(x: T, y: T, z: T, w: T, a: T) -> Self[src]

Creates a new vector from the given components.

impl<T> Matrix<T, M, 1_usize>[src]

pub const fn new(x: T, y: T, z: T, w: T, a: T, b: T) -> Self[src]

Creates a new vector from the given components.

impl<T, const M: usize, const N: usize> Matrix<T, M, N>[src]

#[must_use]pub fn zero() -> Self where
    T: Copy + Zero
[src]

Returns a zero matrix.

#[must_use]pub fn repeat(element: T) -> Self where
    T: Copy
[src]

Create a new matrix filled with the given element.

pub fn repeat_with<F>(repeater: F) -> Self where
    T: Copy + Default,
    F: FnMut() -> T, 
[src]

Create a new matrix filled with elements computed from the given closure.

pub fn as_slice(&self) -> &[T]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Views the underlying data as a contiguous slice.

pub fn as_mut_slice(&mut self) -> &mut [T]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Views the underlying data as a contiguous mutable slice.

pub fn row(&self, i: usize) -> &Row<T, M, N>[src]

Returns a reference to the i-th row of this matrix.

pub fn row_mut(&mut self, i: usize) -> &mut Row<T, M, N>[src]

Returns a mutable reference to the i-th row of this matrix.

pub fn column(&self, i: usize) -> &Column<T, M, N>[src]

Returns a reference to the i-th column of this matrix.

pub fn column_mut(&mut self, i: usize) -> &mut Column<T, M, N>[src]

Returns a mutable reference to the i-th column of this matrix.

pub fn iter(&self) -> Iter<'_, T>

Notable traits for Iter<'a, T>

impl<'a, T> Iterator for Iter<'a, T> type Item = &'a T;
[src]

Returns an iterator over the underlying data.

pub fn iter_mut(&mut self) -> IterMut<'_, T>

Notable traits for IterMut<'a, T>

impl<'a, T> Iterator for IterMut<'a, T> type Item = &'a mut T;
[src]

Returns a mutable iterator over the underlying data.

pub fn iter_rows(&self) -> IterRows<'_, T, M, N>

Notable traits for IterRows<'a, T, M, N>

impl<'a, T, const M: usize, const N: usize> Iterator for IterRows<'a, T, M, N> type Item = &'a Row<T, M, N>;
[src]

Returns an iterator over the rows in this matrix.

pub fn iter_rows_mut(&mut self) -> IterRowsMut<'_, T, M, N>

Notable traits for IterRowsMut<'a, T, M, N>

impl<'a, T, const M: usize, const N: usize> Iterator for IterRowsMut<'a, T, M, N> type Item = &'a mut Row<T, M, N>;
[src]

Returns a mutable iterator over the rows in this matrix.

pub fn iter_columns(&self) -> IterColumns<'_, T, M, N>

Notable traits for IterColumns<'a, T, M, N>

impl<'a, T, const M: usize, const N: usize> Iterator for IterColumns<'a, T, M, N> type Item = &'a Column<T, M, N>;
[src]

Returns an iterator over the columns in this matrix.

pub fn iter_columns_mut(&mut self) -> IterColumnsMut<'_, T, M, N>

Notable traits for IterColumnsMut<'a, T, M, N>

impl<'a, T, const M: usize, const N: usize> Iterator for IterColumnsMut<'a, T, M, N> type Item = &'a mut Column<T, M, N>;
[src]

Returns a mutable iterator over the columns in this matrix.

pub fn map<F, U>(self, f: F) -> Matrix<U, M, N> where
    T: Copy,
    U: Copy + Default,
    F: FnMut(T) -> U, 
[src]

Returns a matrix of the same size as self, with function f applied to each element in order.

pub fn l1_norm(&self) -> T where
    T: Copy + Ord + Abs + Zero + Sum<T>, 
[src]

Returns the L1 norm of the matrix.

Also known as Manhattan Distance or Taxicab norm. L1 Norm is the sum of the magnitudes of the vectors in a space.

Note: if the matrix is a row vector this method might not do what you what you expect. For example:

let row_vector = matrix![1, 2, 3];
assert_eq!(row_vector.l1_norm(), 3);

let column_vector = matrix![1; 2; 3];
assert_eq!(column_vector.l1_norm(), 6);

impl<T, const N: usize> Matrix<T, N, N>[src]

#[must_use]pub fn identity() -> Self where
    T: Copy + Default + One + Zero
[src]

Returns an identity matrix.

pub fn diagonal(&self) -> Vector<T, N> where
    T: Copy + Default
[src]

Returns the diagonal of the matrix.

Trait Implementations

impl<T, const M: usize, const N: usize> Add<&'_ Matrix<T, M, N>> for Matrix<T, M, N> where
    T: Copy + Add<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the + operator.

impl<T, const M: usize, const N: usize> Add<&'_ Matrix<T, M, N>> for &Matrix<T, M, N> where
    T: Copy + Add<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the + operator.

impl<'a, T, const M: usize, const N: usize> Add<&'a T> for Matrix<T, M, N> where
    T: Copy + Default + Add<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the + operator.

impl<'a, T, const M: usize, const N: usize> Add<&'a T> for &Matrix<T, M, N> where
    T: Copy + Default + Add<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the + operator.

impl<T, const M: usize, const N: usize> Add<Matrix<T, M, N>> for Matrix<T, M, N> where
    T: Copy + Add<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the + operator.

impl<T, const M: usize, const N: usize> Add<Matrix<T, M, N>> for &Matrix<T, M, N> where
    T: Copy + Add<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the + operator.

impl<'a, T, const M: usize, const N: usize> Add<T> for Matrix<T, M, N> where
    T: Copy + Default + Add<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the + operator.

impl<'a, T, const M: usize, const N: usize> Add<T> for &Matrix<T, M, N> where
    T: Copy + Default + Add<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the + operator.

impl<T, const M: usize, const N: usize> AddAssign<&'_ Matrix<T, M, N>> for Matrix<T, M, N> where
    T: Copy + AddAssign
[src]

impl<'a, T, const M: usize, const N: usize> AddAssign<&'a T> for Matrix<T, M, N> where
    T: Copy + AddAssign<&'a T>, 
[src]

impl<T, const M: usize, const N: usize> AddAssign<Matrix<T, M, N>> for Matrix<T, M, N> where
    T: Copy + AddAssign
[src]

impl<'a, T, const M: usize, const N: usize> AddAssign<T> for Matrix<T, M, N> where
    T: Copy + AddAssign
[src]

impl<'a, T, const M: usize, const N: usize> BitAnd<&'a T> for Matrix<T, M, N> where
    T: Copy + Default + BitAnd<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the & operator.

impl<'a, T, const M: usize, const N: usize> BitAnd<&'a T> for &Matrix<T, M, N> where
    T: Copy + Default + BitAnd<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the & operator.

impl<'a, T, const M: usize, const N: usize> BitAnd<T> for Matrix<T, M, N> where
    T: Copy + Default + BitAnd<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the & operator.

impl<'a, T, const M: usize, const N: usize> BitAnd<T> for &Matrix<T, M, N> where
    T: Copy + Default + BitAnd<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the & operator.

impl<'a, T, const M: usize, const N: usize> BitAndAssign<&'a T> for Matrix<T, M, N> where
    T: Copy + BitAndAssign<&'a T>, 
[src]

impl<'a, T, const M: usize, const N: usize> BitAndAssign<T> for Matrix<T, M, N> where
    T: Copy + BitAndAssign
[src]

impl<'a, T, const M: usize, const N: usize> BitOr<&'a T> for Matrix<T, M, N> where
    T: Copy + Default + BitOr<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the | operator.

impl<'a, T, const M: usize, const N: usize> BitOr<&'a T> for &Matrix<T, M, N> where
    T: Copy + Default + BitOr<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the | operator.

impl<'a, T, const M: usize, const N: usize> BitOr<T> for Matrix<T, M, N> where
    T: Copy + Default + BitOr<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the | operator.

impl<'a, T, const M: usize, const N: usize> BitOr<T> for &Matrix<T, M, N> where
    T: Copy + Default + BitOr<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the | operator.

impl<'a, T, const M: usize, const N: usize> BitOrAssign<&'a T> for Matrix<T, M, N> where
    T: Copy + BitOrAssign<&'a T>, 
[src]

impl<'a, T, const M: usize, const N: usize> BitOrAssign<T> for Matrix<T, M, N> where
    T: Copy + BitOrAssign
[src]

impl<'a, T, const M: usize, const N: usize> BitXor<&'a T> for Matrix<T, M, N> where
    T: Copy + Default + BitXor<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the ^ operator.

impl<'a, T, const M: usize, const N: usize> BitXor<&'a T> for &Matrix<T, M, N> where
    T: Copy + Default + BitXor<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the ^ operator.

impl<'a, T, const M: usize, const N: usize> BitXor<T> for Matrix<T, M, N> where
    T: Copy + Default + BitXor<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the ^ operator.

impl<'a, T, const M: usize, const N: usize> BitXor<T> for &Matrix<T, M, N> where
    T: Copy + Default + BitXor<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the ^ operator.

impl<'a, T, const M: usize, const N: usize> BitXorAssign<&'a T> for Matrix<T, M, N> where
    T: Copy + BitXorAssign<&'a T>, 
[src]

impl<'a, T, const M: usize, const N: usize> BitXorAssign<T> for Matrix<T, M, N> where
    T: Copy + BitXorAssign
[src]

impl<T: Clone, const M: usize, const N: usize> Clone for Matrix<T, M, N>[src]

impl<T: Copy, const M: usize, const N: usize> Copy for Matrix<T, M, N>[src]

impl<T: Debug, const M: usize, const N: usize> Debug for Matrix<T, M, N>[src]

impl<T, const M: usize, const N: usize> Default for Matrix<T, M, N> where
    T: Copy + Default
[src]

fn default() -> Self[src]

Create a new matrix using T::default() as an initializer.

impl<T> Deref for Matrix<T, 1, 1>[src]

type Target = X<T>

The resulting type after dereferencing.

impl<T> Deref for Matrix<T, 1, 2>[src]

type Target = XY<T>

The resulting type after dereferencing.

impl<T> Deref for Matrix<T, 6, 1>[src]

type Target = XYZWAB<T>

The resulting type after dereferencing.

impl<T> Deref for Matrix<T, 1, 3>[src]

type Target = XYZ<T>

The resulting type after dereferencing.

impl<T> Deref for Matrix<T, 1, 4>[src]

type Target = XYZW<T>

The resulting type after dereferencing.

impl<T> Deref for Matrix<T, 1, 5>[src]

type Target = XYZWA<T>

The resulting type after dereferencing.

impl<T> Deref for Matrix<T, 1, 6>[src]

type Target = XYZWAB<T>

The resulting type after dereferencing.

impl<T> Deref for Matrix<T, 2, 1>[src]

type Target = XY<T>

The resulting type after dereferencing.

impl<T> Deref for Matrix<T, 3, 1>[src]

type Target = XYZ<T>

The resulting type after dereferencing.

impl<T> Deref for Matrix<T, 4, 1>[src]

type Target = XYZW<T>

The resulting type after dereferencing.

impl<T> Deref for Matrix<T, 5, 1>[src]

type Target = XYZWA<T>

The resulting type after dereferencing.

impl<T> DerefMut for Matrix<T, 1, 1>[src]

impl<T> DerefMut for Matrix<T, 1, 2>[src]

impl<T> DerefMut for Matrix<T, 6, 1>[src]

impl<T> DerefMut for Matrix<T, 1, 3>[src]

impl<T> DerefMut for Matrix<T, 1, 4>[src]

impl<T> DerefMut for Matrix<T, 1, 5>[src]

impl<T> DerefMut for Matrix<T, 1, 6>[src]

impl<T> DerefMut for Matrix<T, 2, 1>[src]

impl<T> DerefMut for Matrix<T, 3, 1>[src]

impl<T> DerefMut for Matrix<T, 4, 1>[src]

impl<T> DerefMut for Matrix<T, 5, 1>[src]

impl<'a, T, const M: usize, const N: usize> Div<&'a T> for Matrix<T, M, N> where
    T: Copy + Default + Div<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the / operator.

impl<'a, T, const M: usize, const N: usize> Div<&'a T> for &Matrix<T, M, N> where
    T: Copy + Default + Div<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the / operator.

impl<'a, T, const M: usize, const N: usize> Div<T> for Matrix<T, M, N> where
    T: Copy + Default + Div<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the / operator.

impl<'a, T, const M: usize, const N: usize> Div<T> for &Matrix<T, M, N> where
    T: Copy + Default + Div<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the / operator.

impl<'a, T, const M: usize, const N: usize> DivAssign<&'a T> for Matrix<T, M, N> where
    T: Copy + DivAssign<&'a T>, 
[src]

impl<'a, T, const M: usize, const N: usize> DivAssign<T> for Matrix<T, M, N> where
    T: Copy + DivAssign
[src]

impl<T: Eq, const M: usize, const N: usize> Eq for Matrix<T, M, N>[src]

impl<T, const M: usize, const N: usize> FromIterator<T> for Matrix<T, M, N> where
    T: Copy + Default
[src]

fn from_iter<I>(iter: I) -> Self where
    I: IntoIterator<Item = T>, 
[src]

Create a new matrix from an iterator. Elements will be filled in column-major order.

impl<T: Hash, const M: usize, const N: usize> Hash for Matrix<T, M, N>[src]

impl<T, const M: usize, const N: usize> Index<(usize, usize)> for Matrix<T, M, N>[src]

type Output = T

The returned type after indexing.

impl<T, const M: usize, const N: usize> Index<usize> for Matrix<T, M, N>[src]

type Output = T

The returned type after indexing.

impl<T, const M: usize, const N: usize> IndexMut<(usize, usize)> for Matrix<T, M, N>[src]

impl<T, const M: usize, const N: usize> IndexMut<usize> for Matrix<T, M, N>[src]

impl<T, const M: usize, const N: usize> IntoIterator for Matrix<T, M, N> where
    T: Copy
[src]

type Item = T

The type of the elements being iterated over.

type IntoIter = IntoIter<T, M, N>

Which kind of iterator are we turning this into?

impl<T, const N: usize, const M: usize, const P: usize> Mul<&'_ Matrix<T, N, P>> for Matrix<T, M, N> where
    T: Copy + Default + Mul<Output = T> + Sum
[src]

type Output = Matrix<T, M, P>

The resulting type after applying the * operator.

impl<T, const N: usize, const M: usize, const P: usize> Mul<&'_ Matrix<T, N, P>> for &Matrix<T, M, N> where
    T: Copy + Default + Mul<Output = T> + Sum
[src]

type Output = Matrix<T, M, P>

The resulting type after applying the * operator.

impl<'a, T, const M: usize, const N: usize> Mul<&'a T> for Matrix<T, M, N> where
    T: Copy + Default + Mul<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the * operator.

impl<'a, T, const M: usize, const N: usize> Mul<&'a T> for &Matrix<T, M, N> where
    T: Copy + Default + Mul<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the * operator.

impl<T, const N: usize, const M: usize, const P: usize> Mul<Matrix<T, N, P>> for Matrix<T, M, N> where
    T: Copy + Default + Mul<Output = T> + Sum
[src]

type Output = Matrix<T, M, P>

The resulting type after applying the * operator.

impl<T, const N: usize, const M: usize, const P: usize> Mul<Matrix<T, N, P>> for &Matrix<T, M, N> where
    T: Copy + Default + Mul<Output = T> + Sum
[src]

type Output = Matrix<T, M, P>

The resulting type after applying the * operator.

impl<'a, T, const M: usize, const N: usize> Mul<T> for Matrix<T, M, N> where
    T: Copy + Default + Mul<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the * operator.

impl<'a, T, const M: usize, const N: usize> Mul<T> for &Matrix<T, M, N> where
    T: Copy + Default + Mul<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the * operator.

impl<'a, T, const M: usize, const N: usize> MulAssign<&'a T> for Matrix<T, M, N> where
    T: Copy + MulAssign<&'a T>, 
[src]

impl<'a, T, const M: usize, const N: usize> MulAssign<T> for Matrix<T, M, N> where
    T: Copy + MulAssign
[src]

impl<T, const M: usize, const N: usize> Neg for Matrix<T, M, N> where
    T: Copy + Default + Neg<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the - operator.

impl<T, const M: usize, const N: usize> Neg for &Matrix<T, M, N> where
    T: Copy + Default + Neg<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the - operator.

impl<T, const M: usize, const N: usize> Not for Matrix<T, M, N> where
    T: Copy + Default + Not<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the ! operator.

impl<T, const M: usize, const N: usize> Not for &Matrix<T, M, N> where
    T: Copy + Default + Not<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the ! operator.

impl<T: Ord, const M: usize, const N: usize> Ord for Matrix<T, M, N>[src]

impl<T: PartialEq, const M: usize, const N: usize> PartialEq<Matrix<T, M, N>> for Matrix<T, M, N>[src]

impl<T: PartialOrd, const M: usize, const N: usize> PartialOrd<Matrix<T, M, N>> for Matrix<T, M, N>[src]

impl<'a, T, const M: usize, const N: usize> Rem<&'a T> for Matrix<T, M, N> where
    T: Copy + Default + Rem<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the % operator.

impl<'a, T, const M: usize, const N: usize> Rem<&'a T> for &Matrix<T, M, N> where
    T: Copy + Default + Rem<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the % operator.

impl<'a, T, const M: usize, const N: usize> Rem<T> for Matrix<T, M, N> where
    T: Copy + Default + Rem<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the % operator.

impl<'a, T, const M: usize, const N: usize> Rem<T> for &Matrix<T, M, N> where
    T: Copy + Default + Rem<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the % operator.

impl<'a, T, const M: usize, const N: usize> RemAssign<&'a T> for Matrix<T, M, N> where
    T: Copy + RemAssign<&'a T>, 
[src]

impl<'a, T, const M: usize, const N: usize> RemAssign<T> for Matrix<T, M, N> where
    T: Copy + RemAssign
[src]

impl<'a, T, const M: usize, const N: usize> Shl<&'a T> for Matrix<T, M, N> where
    T: Copy + Default + Shl<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the << operator.

impl<'a, T, const M: usize, const N: usize> Shl<&'a T> for &Matrix<T, M, N> where
    T: Copy + Default + Shl<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the << operator.

impl<'a, T, const M: usize, const N: usize> Shl<T> for Matrix<T, M, N> where
    T: Copy + Default + Shl<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the << operator.

impl<'a, T, const M: usize, const N: usize> Shl<T> for &Matrix<T, M, N> where
    T: Copy + Default + Shl<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the << operator.

impl<'a, T, const M: usize, const N: usize> ShlAssign<&'a T> for Matrix<T, M, N> where
    T: Copy + ShlAssign<&'a T>, 
[src]

impl<'a, T, const M: usize, const N: usize> ShlAssign<T> for Matrix<T, M, N> where
    T: Copy + ShlAssign
[src]

impl<'a, T, const M: usize, const N: usize> Shr<&'a T> for Matrix<T, M, N> where
    T: Copy + Default + Shr<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the >> operator.

impl<'a, T, const M: usize, const N: usize> Shr<&'a T> for &Matrix<T, M, N> where
    T: Copy + Default + Shr<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the >> operator.

impl<'a, T, const M: usize, const N: usize> Shr<T> for Matrix<T, M, N> where
    T: Copy + Default + Shr<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the >> operator.

impl<'a, T, const M: usize, const N: usize> Shr<T> for &Matrix<T, M, N> where
    T: Copy + Default + Shr<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the >> operator.

impl<'a, T, const M: usize, const N: usize> ShrAssign<&'a T> for Matrix<T, M, N> where
    T: Copy + ShrAssign<&'a T>, 
[src]

impl<'a, T, const M: usize, const N: usize> ShrAssign<T> for Matrix<T, M, N> where
    T: Copy + ShrAssign
[src]

impl<T, const M: usize, const N: usize> StructuralEq for Matrix<T, M, N>[src]

impl<T, const M: usize, const N: usize> StructuralPartialEq for Matrix<T, M, N>[src]

impl<T, const M: usize, const N: usize> Sub<&'_ Matrix<T, M, N>> for Matrix<T, M, N> where
    T: Copy + Sub<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the - operator.

impl<T, const M: usize, const N: usize> Sub<&'_ Matrix<T, M, N>> for &Matrix<T, M, N> where
    T: Copy + Sub<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the - operator.

impl<'a, T, const M: usize, const N: usize> Sub<&'a T> for Matrix<T, M, N> where
    T: Copy + Default + Sub<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the - operator.

impl<'a, T, const M: usize, const N: usize> Sub<&'a T> for &Matrix<T, M, N> where
    T: Copy + Default + Sub<&'a T, Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the - operator.

impl<T, const M: usize, const N: usize> Sub<Matrix<T, M, N>> for Matrix<T, M, N> where
    T: Copy + Sub<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the - operator.

impl<T, const M: usize, const N: usize> Sub<Matrix<T, M, N>> for &Matrix<T, M, N> where
    T: Copy + Sub<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the - operator.

impl<'a, T, const M: usize, const N: usize> Sub<T> for Matrix<T, M, N> where
    T: Copy + Default + Sub<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the - operator.

impl<'a, T, const M: usize, const N: usize> Sub<T> for &Matrix<T, M, N> where
    T: Copy + Default + Sub<Output = T>, 
[src]

type Output = Matrix<T, M, N>

The resulting type after applying the - operator.

impl<T, const M: usize, const N: usize> SubAssign<&'_ Matrix<T, M, N>> for Matrix<T, M, N> where
    T: Copy + SubAssign
[src]

impl<'a, T, const M: usize, const N: usize> SubAssign<&'a T> for Matrix<T, M, N> where
    T: Copy + SubAssign<&'a T>, 
[src]

impl<T, const M: usize, const N: usize> SubAssign<Matrix<T, M, N>> for Matrix<T, M, N> where
    T: Copy + SubAssign
[src]

impl<'a, T, const M: usize, const N: usize> SubAssign<T> for Matrix<T, M, N> where
    T: Copy + SubAssign
[src]

impl<T, const M: usize, const N: usize> Sum<Matrix<T, M, N>> for Matrix<T, M, N> where
    Self: Add<Output = Self>,
    T: Copy + Zero
[src]

Auto Trait Implementations

impl<T, const M: usize, const N: usize> RefUnwindSafe for Matrix<T, M, N> where
    T: RefUnwindSafe

impl<T, const M: usize, const N: usize> Send for Matrix<T, M, N> where
    T: Send

impl<T, const M: usize, const N: usize> Sync for Matrix<T, M, N> where
    T: Sync

impl<T, const M: usize, const N: usize> Unpin for Matrix<T, M, N> where
    T: Unpin

impl<T, const M: usize, const N: usize> UnwindSafe for Matrix<T, M, N> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.