Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(expr: &ScalarExpr, ctx: &EvalContext<'_>) -> Result<Value>
Expand description

Evaluate a scalar expression against a row.

Pure function. Deterministic. Does not allocate a new context — the caller owns it. 2+ assertions per function (per pressurecraft guide): preconditions on argument count, postconditions on return-type consistency.