Skip to main content

LayerIndex

Type Alias LayerIndex 

pub type LayerIndex = u32;
Expand description

The type used for layer index.

Layer modifiers and layer events use 1-based indices (1 = first non-base layer). Index 0 is reserved (base / always active). Call sites must only pass indices in range for the keymap’s layer count; out-of-range values are a construction bug and are checked with debug_assert in debug builds.