pub struct Binary {
pub lhs: ExprRef,
pub operator: Operator,
pub rhs: ExprRef,
}Expand description
Binary operation (e.g., a + b, x == y, p AND q).
Represents operations that take two operands, including arithmetic, comparison, and logical operators.
§Examples
In WHERE e.price > 100 AND e.active == true, there are multiple
binary operations: >, ==, and AND.
Fields§
§lhs: ExprRefLeft-hand side operand
operator: OperatorThe operator
rhs: ExprRefRight-hand side operand
Trait Implementations§
impl Copy for Binary
impl Eq for Binary
impl StructuralPartialEq for Binary
Auto Trait Implementations§
impl Freeze for Binary
impl RefUnwindSafe for Binary
impl Send for Binary
impl Sync for Binary
impl Unpin for Binary
impl UnwindSafe for Binary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more