#[non_exhaustive]pub enum PathStep {
Condition(usize),
Action(usize),
Value(usize),
Branch(usize),
ElseBody,
Body,
}Expand description
One step from a compared element to the differing child element.
Indices count only compared elements: disabled conditions, disabled actions, and inert rules are skipped before comparison.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Condition(usize)
The n-th enabled condition of the compared rules; a Value(0) step
after it enters the condition’s value.
Action(usize)
The n-th enabled action of the current action sequence — the rule’s
actions with each control-flow group folded into its header action
(If, While, For), or a nested list entered through Branch,
ElseBody, or Body.
Value(usize)
The n-th value operand of an action — its value arguments in
declaration order (If carries one condition per branch) — or the
n-th child of a value: Array elements, Call arguments, Vector
x/y/z, or a PlayerVariable’s player. For the Set/Modify spelling
pair the steps index the Set value’s call arguments; for a
PlayerVariable/memberAccess pair Value(1) is the memberAccess’s
member operand.
Branch(usize)
The body of the n-th if/else if branch of an If action.
ElseBody
The else body of an If action.
Body
The body of a While or For action.