Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(formula: &str, variables: &HashMap<String, Value>) -> Value
Expand 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.