pub type Dimension = usize;Expand description
Dimension is an axis of the storage. In a vector there’s a single Dimension (0) and it’s the horizontal position within the vector. For a matrix, there are two Dimensions, x and y (0 and 1, but whether 0 is x or 1 is an implementation detail).
Trait Implementations§
Source§impl From<LogicalDimension> for Dimension
impl From<LogicalDimension> for Dimension
Source§fn from(value: LogicalDimension) -> Self
fn from(value: LogicalDimension) -> Self
Converts to this type from the input type.