Skip to main content

matches_element_id

Function matches_element_id 

Source
pub const fn matches_element_id(
    op: i32,
    runtime_id: i32,
    canonical_id: i32,
) -> bool
Expand description

Match an element/command id against the canonical value and an optional runtime override. Unlike the old runtime_id != 0 && op == runtime_id pattern, this keeps opcode zero valid (for example MATH.RAND).