pub trait MatShape {
type Rows: Copy + Eq;
type Cols: Copy + Eq;
// Required methods
fn nrows(&self) -> Self::Rows;
fn ncols(&self) -> Self::Cols;
}Expand description
Type with a given matrix shape.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".