pub struct ExprBinaryOp {
pub lhs: Box<Expr>,
pub op: BinaryOp,
pub rhs: Box<Expr>,
}Expand description
A binary operation between two expressions.
Applies an operator to a left-hand side and right-hand side expression. Supported operators include equality, comparison, and type checking.
§Examples
eq(a, b) // a == b
ne(a, b) // a != b
lt(a, b) // a < b
gt(a, b) // a > bFields§
§lhs: Box<Expr>The left-hand side expression.
op: BinaryOpThe operator to apply.
rhs: Box<Expr>The right-hand side expression.
Trait Implementations§
Source§impl Clone for ExprBinaryOp
impl Clone for ExprBinaryOp
Source§fn clone(&self) -> ExprBinaryOp
fn clone(&self) -> ExprBinaryOp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExprBinaryOp
impl Debug for ExprBinaryOp
Source§impl From<ExprBinaryOp> for Expr
impl From<ExprBinaryOp> for Expr
Source§fn from(value: ExprBinaryOp) -> Self
fn from(value: ExprBinaryOp) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExprBinaryOp
impl PartialEq for ExprBinaryOp
impl StructuralPartialEq for ExprBinaryOp
Auto Trait Implementations§
impl Freeze for ExprBinaryOp
impl RefUnwindSafe for ExprBinaryOp
impl Send for ExprBinaryOp
impl Sync for ExprBinaryOp
impl Unpin for ExprBinaryOp
impl UnwindSafe for ExprBinaryOp
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