Enum rustdb::run::Instruction
source · [−]#[non_exhaustive]
pub enum Instruction {
Show 20 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<CSelectExpression>),
ForSortNext(usize, Box<(usize, usize, Assigns)>),
DataOp(Box<DO>),
Select(Box<CSelectExpression>),
Set(Box<CSelectExpression>),
PushInt(CExpPtr<i64>),
PushFloat(CExpPtr<f64>),
PushBool(CExpPtr<bool>),
}
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<CSelectExpression>)
ForSortNext(usize, Box<(usize, usize, Assigns)>)
DataOp(Box<DO>)
Select(Box<CSelectExpression>)
Set(Box<CSelectExpression>)
PushInt(CExpPtr<i64>)
PushFloat(CExpPtr<f64>)
PushBool(CExpPtr<bool>)
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more