pub fn evaluate(formula: &str, variables: &HashMap<String, Value>) -> ValueExpand description
Evaluate a formula string with named variables.
Returns Value::Error(ErrorKind::Value) on parse failure.
Note: constructs a fresh Registry on every call. For bulk evaluation
across many formulas, consider reusing a Registry via the lower-level
eval::evaluate_expr API.