pub struct Matrix<const W: usize, const H: usize>(pub [[Float; W]; H]);
Expand description
A fixed-size matrix.
As this type was made solely for internal purposes, external usage seems ill-advised.
Tuple Fields§
§0: [[Float; W]; H]
Implementations§
Trait Implementations§
Source§impl<const W: usize, const H: usize> AddAssign for Matrix<W, H>
impl<const W: usize, const H: usize> AddAssign for Matrix<W, H>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl<const X: usize> MulAssign for Matrix<X, X>
impl<const X: usize> MulAssign for Matrix<X, X>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl<const W: usize, const H: usize> SubAssign for Matrix<W, H>
impl<const W: usize, const H: usize> SubAssign for Matrix<W, H>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl<const W: usize, const H: usize> Copy for Matrix<W, H>
Auto Trait Implementations§
impl<const W: usize, const H: usize> Freeze for Matrix<W, H>
impl<const W: usize, const H: usize> RefUnwindSafe for Matrix<W, H>
impl<const W: usize, const H: usize> Send for Matrix<W, H>
impl<const W: usize, const H: usize> Sync for Matrix<W, H>
impl<const W: usize, const H: usize> Unpin for Matrix<W, H>
impl<const W: usize, const H: usize> UnwindSafe for Matrix<W, H>
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
Mutably borrows from an owned value. Read more