Trait MatWithShape

Source
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§

Source§

impl<T, const ROWS: usize, const COLS: usize> MatWithShape<ROWS, COLS> for &T
where T: MatWithShape<ROWS, COLS>,

Implementation of MatWithShape for references to entities.

Source§

impl<T, const ROWS: usize, const COLS: usize> MatWithShape<ROWS, COLS> for &mut T
where T: MatWithShape<ROWS, COLS>,

Implementation of MatWithShape for mutable references to entities.

Implementors§

Source§

impl<E, const ROWS: usize, const COLS: usize, Descriptor: Descriptor> MatWithShape<ROWS, COLS> for Mat<ROWS, COLS, E, Descriptor>
where E: MatEl,