position_of

Function position_of 

Source
pub fn position_of<const D: usize>(
    shape: &[(Dimension, usize); D],
    dimension: Dimension,
) -> Option<usize>
Expand description

Finds the position of the dimension name in the shape.

None is returned if the dimension name is not in the shape.