pub struct BinExpr<'src> {
pub lhs: Box<SpannedExpr<'src>>,
pub op: BinOp,
pub rhs: Box<SpannedExpr<'src>>,
}Expand description
Represents a binary expression.
Binary expressions can be either logical or arithmetic.
Fields§
§lhs: Box<SpannedExpr<'src>>The LHS of the expr.
op: BinOpThe binary operator.
rhs: Box<SpannedExpr<'src>>The RHS of the expr.
Trait Implementations§
impl<'src> StructuralPartialEq for BinExpr<'src>
Auto Trait Implementations§
impl<'src> Freeze for BinExpr<'src>
impl<'src> RefUnwindSafe for BinExpr<'src>
impl<'src> Send for BinExpr<'src>
impl<'src> Sync for BinExpr<'src>
impl<'src> Unpin for BinExpr<'src>
impl<'src> UnsafeUnpin for BinExpr<'src>
impl<'src> UnwindSafe for BinExpr<'src>
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