pub struct BinaryExpr {
pub left: Box<Expression>,
pub operator: BinaryOperator,
pub right: Box<Expression>,
pub expr_type: TypeId,
pub location: Location,
}
Expand description
A binary expression (e.g., a + b)
Fields§
§left: Box<Expression>
Left operand
operator: BinaryOperator
Operator
right: Box<Expression>
Right operand
expr_type: TypeId
Type of the binary expression
location: Location
Source code location information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinaryExpr
impl RefUnwindSafe for BinaryExpr
impl Send for BinaryExpr
impl Sync for BinaryExpr
impl Unpin for BinaryExpr
impl UnwindSafe for BinaryExpr
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