pub enum ExpressionNode {
BinOp(Box<ExpressionNode>, BinOp, Box<ExpressionNode>),
Constant(Constant),
}
Expand description
The main expression enum, allowing for grouping of all expressions inside of the AST.
Variants§
BinOp(Box<ExpressionNode>, BinOp, Box<ExpressionNode>)
A binary operation (basic maths) involving 2 recursive ExpressionNodes.
Constant(Constant)
A constant forming from Constant
Trait Implementations§
Source§impl Debug for ExpressionNode
impl Debug for ExpressionNode
Source§impl PartialEq for ExpressionNode
impl PartialEq for ExpressionNode
impl StructuralPartialEq for ExpressionNode
Auto Trait Implementations§
impl Freeze for ExpressionNode
impl RefUnwindSafe for ExpressionNode
impl Send for ExpressionNode
impl Sync for ExpressionNode
impl Unpin for ExpressionNode
impl UnwindSafe for ExpressionNode
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