Skip to main content

eval_pred_ctx

Function eval_pred_ctx 

Source
pub fn eval_pred_ctx(
    e: &Expr,
    x: f64,
    resolve: &dyn Fn(&str) -> f64,
) -> Result<bool, String>
Expand description

Evaluate e as a predicate — compiled to fusevm, run on the VM, read as a boolean via Value::is_truthy. resolve maps a field name to its value.