pub trait MatWithShape<const ROWS: usize, const COLS: usize> { }Expand description
A trait indicate that matrix in case of referencing it can be interpreted as such having specified shape ROWS x COLS.
This trait defines a constant ROWS, COLS, representing the length of the entity.
Implementations on Foreign Types§
impl<T, const ROWS: usize, const COLS: usize> MatWithShape<ROWS, COLS> for &Twhere
T: MatWithShape<ROWS, COLS>,
Implementation of MatWithShape for references to entities.
impl<T, const ROWS: usize, const COLS: usize> MatWithShape<ROWS, COLS> for &mut Twhere
T: MatWithShape<ROWS, COLS>,
Implementation of MatWithShape for mutable references to entities.