pub trait MatTrait {
// Required method
fn shape(&self) -> (usize, usize);
// Provided methods
fn n_rows(&self) -> usize { ... }
fn n_cols(&self) -> usize { ... }
fn is_square(&self) -> bool { ... }
}Expand description
Minimal shape-based interface shared by Mat and crate::sparse::SpMat.
Implementors only need to provide shape; the rest are
derived defaults.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".