pub enum TraceStep {
FieldResolved {
path: String,
value: Value,
},
FunctionCalled {
name: String,
args: Vec<Value>,
result: Value,
},
BinaryOp {
op: String,
lhs: Value,
rhs: Value,
result: Value,
},
IfBranch {
condition_value: Value,
branch_taken: &'static str,
},
ShortCircuit {
op: String,
reason: String,
},
}Expand description
A single recorded event during FEL evaluation.
The variant set is intentionally narrow: only events that help explain why an expression produced its result. Non-covered AST nodes omit steps rather than emitting noise — correctness over completeness.
Variants§
FieldResolved
A $field reference was resolved against the environment.
Fields
FunctionCalled
A function call completed and returned a value.
Emitted only for functions that eagerly evaluate all arguments. Lazy
or short-circuiting functions (if, countWhere, every, some,
etc.) rely on other step kinds to explain themselves.
Fields
BinaryOp
A binary operator produced a result from two operand values.
Covers arithmetic (+ - * /), comparison (< <= == != > >=), and
and/or when both sides were actually evaluated. Short-circuited
and/or emit TraceStep::ShortCircuit instead.
Fields
IfBranch
A conditional (if(...) call or if-then-else / ternary) selected a branch.
Fields
ShortCircuit
A logical operator short-circuited; the right-hand side was not evaluated.