Enum rustdb::run::Instruction
source · #[non_exhaustive]pub enum Instruction {
Show 24 variants
PushConst(Value),
PushValue(CExpPtr<Value>),
PushLocal(usize),
PopToLocal(usize),
Jump(usize),
JumpIfFalse(usize, CExpPtr<bool>),
Call(Rc<Function>),
Return,
Throw,
Execute,
ForInit(usize, Box<CTableExpression>),
ForNext(usize, Box<ForNextInfo>),
ForSortInit(usize, Box<CFromExpression>),
ForSortNext(usize, Box<(usize, usize, Assigns)>),
DataOp(Box<DO>),
Select(Box<CFromExpression>),
Set(Box<CFromExpression>),
PushInt(CExpPtr<i64>),
PushFloat(CExpPtr<f64>),
PushBool(CExpPtr<bool>),
AssignLocal(usize, CExpPtr<Value>),
AppendLocal(usize, CExpPtr<Value>),
IncLocal(usize, CExpPtr<Value>),
DecLocal(usize, CExpPtr<Value>),
}
Expand description
Instruction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PushConst(Value)
PushValue(CExpPtr<Value>)
PushLocal(usize)
PopToLocal(usize)
Jump(usize)
JumpIfFalse(usize, CExpPtr<bool>)
Call(Rc<Function>)
Return
Throw
Execute
ForInit(usize, Box<CTableExpression>)
ForNext(usize, Box<ForNextInfo>)
ForSortInit(usize, Box<CFromExpression>)
ForSortNext(usize, Box<(usize, usize, Assigns)>)
DataOp(Box<DO>)
Select(Box<CFromExpression>)
Set(Box<CFromExpression>)
PushInt(CExpPtr<i64>)
PushFloat(CExpPtr<f64>)
PushBool(CExpPtr<bool>)
AssignLocal(usize, CExpPtr<Value>)
Assign a local variable.
AppendLocal(usize, CExpPtr<Value>)
Append to a local variable.
IncLocal(usize, CExpPtr<Value>)
Increment (+=) a local variable.
DecLocal(usize, CExpPtr<Value>)
Decrement (-=) a local variable.
Auto Trait Implementations§
impl !RefUnwindSafe for Instruction
impl !Send for Instruction
impl !Sync for Instruction
impl Unpin for Instruction
impl !UnwindSafe for Instruction
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