pub struct Binary {
pub left: Box<Expr>,
pub operator: BinOpKind,
pub right: Box<Expr>,
}Expand description
Represents a binary expression in the AST.
A binary expression consists of two operands and an operator (e.g., a + b).
Fields§
§left: Box<Expr>The left operand of the binary expression.
operator: BinOpKindThe operator used in the binary expression.
right: Box<Expr>The right operand of the binary expression.
Trait Implementations§
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