pub trait Dim {
type Shape;
// Required methods
fn rank(&self) -> usize;
fn size(&self) -> usize;
}
Expand description
the Dim trait is used to define a type that can be used as a raw dimension.
This trait is primarily used to provide abstracted, generic interpretations of the
dimensions of the ndarray crate to ensure long-term compatibility.