pub enum Opcode {
Show 31 variants
Nil,
Bool(bool),
Number(f64),
String(RcStr),
MakeList(u32),
NewFunc(Rc<Code>),
Pop,
Dup,
Dup2,
Unpack(u32),
Get(VarScope, u32),
Set(VarScope, u32),
Tee(VarScope, u32),
Goto(u32),
GotoIfFalse(u32),
GotoIfFalseNoPop(u32),
Return,
Yield,
Next,
CallFunc(u32),
Binop(Binop),
Unop(Unop),
Print,
Disasm,
AddToTest,
Assert,
AssertEq,
Label(RcStr),
UnresolvedGoto(RcStr),
UnresolvedGotoIfFalse(RcStr),
UnresolvedGotoIfFalseNoPop(RcStr),
}Variants§
Nil
Bool(bool)
Number(f64)
String(RcStr)
MakeList(u32)
NewFunc(Rc<Code>)
Pop
Dup
Dup2
Unpack(u32)
Get(VarScope, u32)
Set(VarScope, u32)
Tee(VarScope, u32)
Goto(u32)
GotoIfFalse(u32)
GotoIfFalseNoPop(u32)
Return
Yield
Next
CallFunc(u32)
Binop(Binop)
Unop(Unop)
Disasm
AddToTest
Assert
AssertEq
Label(RcStr)
UnresolvedGoto(RcStr)
UnresolvedGotoIfFalse(RcStr)
UnresolvedGotoIfFalseNoPop(RcStr)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Opcode
impl !RefUnwindSafe for Opcode
impl !Send for Opcode
impl !Sync for Opcode
impl Unpin for Opcode
impl !UnwindSafe for Opcode
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