#[repr(u8)]
pub enum OpCode {
Show 68 variants
Nop,
Return,
Call,
CallUnpack,
Pop,
Drop,
Clone,
Tuple,
TupleN,
LoadFunction,
LoadFunction16,
LoadConst,
LoadConst16,
InsertGlobal,
InsertGlobalMut,
StoreGlobal,
LoadGlobal,
InsertLocal,
StoreLocal,
StoreLocal16,
LoadLocal,
LoadLocal16,
DropLocals,
StoreUpvalue,
StoreUpvalue16,
LoadUpvalue,
LoadUpvalue16,
CloseUpvalue,
CloseUpvalue16,
Nil,
True,
False,
Empty,
UInt8,
Int8,
Int16,
Neg,
Pos,
Inv,
Not,
And,
Xor,
Or,
Shl,
Shr,
Add,
Sub,
Mul,
Div,
Mod,
EQ,
NE,
LT,
LE,
GE,
GT,
Jump,
JumpIfFalse,
JumpIfTrue,
PopJumpIfFalse,
PopJumpIfTrue,
LongJump,
LongJumpIfFalse,
LongJumpIfTrue,
PopLongJumpIfFalse,
PopLongJumpIfTrue,
Inspect,
Assert,
}
Variants
Nop
Return
Call
CallUnpack
Pop
Drop
Clone
Tuple
TupleN
LoadFunction
LoadFunction16
LoadConst
LoadConst16
InsertGlobal
InsertGlobalMut
StoreGlobal
LoadGlobal
InsertLocal
StoreLocal
StoreLocal16
LoadLocal
LoadLocal16
DropLocals
StoreUpvalue
StoreUpvalue16
LoadUpvalue
LoadUpvalue16
CloseUpvalue
CloseUpvalue16
Nil
True
False
Empty
UInt8
Int8
Int16
Neg
Pos
Inv
Not
And
Xor
Or
Shl
Shr
Add
Sub
Mul
Div
Mod
EQ
NE
LT
LE
GE
GT
Jump
JumpIfFalse
JumpIfTrue
PopJumpIfFalse
PopJumpIfTrue
LongJump
LongJumpIfFalse
LongJumpIfTrue
PopLongJumpIfFalse
PopLongJumpIfTrue
Inspect
Assert
Implementations
Trait Implementations
impl Copy for OpCode
impl Eq for OpCode
impl StructuralEq for OpCode
impl StructuralPartialEq for OpCode
Auto Trait Implementations
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnwindSafe for OpCode
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
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more