pub enum Token {
Push(Value),
PushVar(Var),
Write(Out),
Binop(Binop),
Unop(Unop),
Function(Function),
Noop,
}Expand description
RPN Token
Variants§
Push(Value)
Push a value onto the stack
PushVar(Var)
Push variable value onto the stack
Write(Out)
Write top of stack to in-out variable
Binop(Binop)
Binary operation
Pops 2 values from the stack, performs the operation, and pushes the result back onto the stack
Unop(Unop)
Unary operation
Replaces the top value on the stack with the result of the operation
Function(Function)
Function call
Pops a number of arguments from the stack, evaluates the function, and pushes the result back onto the stack.
Noop
No operation
Trait Implementations§
Source§impl PartialOrd for Token
impl PartialOrd for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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