Skip to main content

eval_binary_op

Function eval_binary_op 

Source
pub fn eval_binary_op(
    left: &Value,
    op: &BinaryOp,
    right: &Value,
) -> Result<Value>
Expand description

Evaluate a binary operation on two already-evaluated values.

This function handles all binary operators (Eq, NotEq, And, Or, Gt, Lt, etc.) and returns the result of the operation.