Skip to main content

key_position

Function key_position 

Source
pub fn key_position(
    layout: &Layout,
    axis: usize,
    name: &str,
) -> Result<usize, Error>
Expand description

The position of key name on axis of layout, or Steps::FILL where the axis lacks it: a missing key reads the fill and writes nothing, as a position outside the axis does. BPL and both Python bindings read keys by this rule.