Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate<C>(
    node: &Value,
    ctx: &mut C,
    resolve: Resolve<'_, C>,
) -> Result<f64, ExpressionError>
Expand description

Evaluate an expression tree to a number. Operators fold via the frozen dispatch + primitive tables; literals yield their numeric value; any other node is delegated to resolve.