pub enum Op {
Show 41 variants
Nop,
InitStack {
args: u8,
locals: u8,
},
Call {
target: u32,
},
Syscall {
id: u16,
name: String,
args: u8,
},
Ret,
RetV,
Jmp {
target: u32,
},
Jz {
target: u32,
},
PushNil,
PushTrue,
PushI32(i32),
PushI16(i16),
PushI8(i8),
PushF32(f32),
PushString(String),
PushGlobal(u16),
PushStack(i8),
PushGlobalTable(u16),
PushLocalTable(i8),
PushTop,
PushReturn,
PopGlobal(u16),
PopStack(i8),
PopGlobalTable(u16),
PopLocalTable(i8),
Neg,
Add,
Sub,
Mul,
Div,
Mod,
BitTest,
And,
Or,
SetE,
SetNE,
SetG,
SetLE,
SetL,
SetGE,
Unknown(u8),
}Variants§
Nop
InitStack
Call
Syscall
Ret
RetV
Jmp
Jz
PushNil
PushTrue
PushI32(i32)
PushI16(i16)
PushI8(i8)
PushF32(f32)
PushString(String)
PushGlobal(u16)
PushStack(i8)
PushGlobalTable(u16)
PushLocalTable(i8)
PushTop
PushReturn
PopGlobal(u16)
PopStack(i8)
PopGlobalTable(u16)
PopLocalTable(i8)
Neg
Add
Sub
Mul
Div
Mod
BitTest
And
Or
SetE
SetNE
SetG
SetLE
SetL
SetGE
Unknown(u8)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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