pub trait Dimensions2D {
// Required methods
fn n_rows(&self) -> usize;
fn n_cols(&self) -> usize;
// Provided methods
fn dimensions(&self) -> MatrixDimensions { ... }
fn len(&self) -> usize { ... }
fn is_empty(&self) -> bool { ... }
}
Expand description
Dimensions in two directions.
Required Methods§
Provided Methods§
Sourcefn dimensions(&self) -> MatrixDimensions
fn dimensions(&self) -> MatrixDimensions
Dimensions of the output as a dimensions object.