pub trait Dimension {
// Required methods
fn ndim(&self) -> usize;
fn size(&self) -> usize;
fn dims(&self) -> &[usize];
}Expand description
Trait for types that can describe the dimensions of an array.
This trait allows for different representations of dimensions while providing a common interface for querying array properties.