brillig_vm::arithmetic

Function evaluate_binary_int_op_cmp

Source
fn evaluate_binary_int_op_cmp<T: Ord + PartialEq>(
    op: &BinaryIntOp,
    lhs: T,
    rhs: T,
) -> bool
Expand description

Evaluates comparison operations (Equals, LessThan, LessThanEquals) between two values of an ordered type (e.g., fields are unordered).

ยงPanics

If an unsupported operator is provided (i.e., not Equals, LessThan, or LessThanEquals).