pub trait Indexable {
type Index: Dimension;
// Required method
fn dim(&self) -> Self::Index;
}
Expand description
Trait for objects that have an indexable dimension.
This trait is used to define objects that have a specific dimensionality, allowing for operations that depend on the size and shape of the object.