pub struct Binary {
pub lhs: Box<Expr>,
pub op: BinOp,
pub rhs: Box<Expr>,
pub span: Range<usize>,
}Expand description
A binary expression, such as 1 + 2. Binary expressions can include nested expressions.
Fields§
§lhs: Box<Expr>The left-hand side of the binary expression.
op: BinOpThe operator of the binary expression.
rhs: Box<Expr>The right-hand side of the binary expression.
span: Range<usize>The region of the source code that this binary expression was parsed from.
Implementations§
Trait Implementations§
Source§impl Latex for Binary
impl Latex for Binary
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.Source§impl<'source> Parse<'source> for Binary
impl<'source> Parse<'source> 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