fn evaluate_binary_int_op_u1(
op: &BinaryIntOp,
lhs: bool,
rhs: bool,
) -> Result<bool, BrilligArithmeticError>
Expand description
Evaluates binary operations on 1-bit unsigned integers (booleans).
§Returns
- Ok(result) if successful.
- Err(BrilligArithmeticError::DivisionByZero) if division by zero occurs.
§Panics
If an operation other than Add, Sub, Mul, Div, And, Or, Xor, Equals, LessThan, or LessThanEquals is supplied as an argument.