Trait implemented by any type that can be used as a dimension. This includes type-level
Dynamic (for dimensions not known at compile-time).
fn try_to_usize() -> Option<usize>
Gets the compile-time value of
None if it is not known, i.e., if
Self = Dynamic.
Gets the run-time value of
self. For type-level integers, this is the same as
fn from_usize(dim: usize) -> Self
Builds an instance of
Self from a run-time value. Panics if
Self is a type-level
dim != Self::try_to_usize().unwrap().