pub enum Expr {
Variable(VariablePath),
TlmRef(VariablePath),
Literal(Literal),
UnOp(UnOpKind, Box<Self>),
BinOp(BinOpKind, Box<Self>, Box<Self>),
FunCall(Box<Self>, Vec<Self>),
}
Expand description
an expression.
to implementer: you can use stack machine to express the evaluation of this tree structure.
Variants§
Variable(VariablePath)
TlmRef(VariablePath)
Literal(Literal)
UnOp(UnOpKind, Box<Self>)
BinOp(BinOpKind, Box<Self>, Box<Self>)
FunCall(Box<Self>, Vec<Self>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
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