Skip to main content

Opcode

Enum Opcode 

Source
#[repr(u8)]
pub enum Opcode {
Show 94 variants VOID = 0, DUPLICATE = 1, LOAD_SLICE = 2, STORE_SLICE = 3, LOAD_ARRAY = 4, STORE_ARRAY = 5, LOAD_MAP = 6, STORE_MAP = 7, LOAD_STRUCT = 8, STORE_STRUCT = 9, LOAD_EMBEDDED = 10, STORE_EMBEDDED = 11, LOAD_PKG = 12, STORE_PKG = 13, LOAD_POINTER = 14, STORE_POINTER = 15, LOAD_UP_VALUE = 16, STORE_UP_VALUE = 17, ADD = 18, SUB = 19, MUL = 20, QUO = 21, REM = 22, AND = 23, OR = 24, XOR = 25, AND_NOT = 26, SHL = 27, SHR = 28, ADD_ASSIGN = 29, SUB_ASSIGN = 30, MUL_ASSIGN = 31, QUO_ASSIGN = 32, REM_ASSIGN = 33, AND_ASSIGN = 34, OR_ASSIGN = 35, XOR_ASSIGN = 36, AND_NOT_ASSIGN = 37, SHL_ASSIGN = 38, SHR_ASSIGN = 39, INC = 40, DEC = 41, UNARY_SUB = 42, UNARY_XOR = 43, NOT = 44, EQL = 45, NEQ = 46, LSS = 47, GTR = 48, LEQ = 49, GEQ = 50, REF = 51, REF_UPVALUE = 52, REF_SLICE_MEMBER = 53, REF_STRUCT_FIELD = 54, REF_EMBEDDED = 55, REF_PKG_MEMBER = 56, SEND = 57, RECV = 58, PACK_VARIADIC = 59, CALL = 60, RETURN = 61, JUMP = 62, JUMP_IF = 63, JUMP_IF_NOT = 64, SWITCH = 65, SELECT = 66, RANGE_INIT = 67, RANGE = 68, LOAD_INIT_FUNC = 69, BIND_METHOD = 70, BIND_I_METHOD = 71, CAST = 72, TYPE_ASSERT = 73, TYPE = 74, IMPORT = 75, SLICE = 76, CLOSURE = 77, LITERAL = 78, NEW = 79, MAKE = 80, COMPLEX = 81, REAL = 82, IMAG = 83, LEN = 84, CAP = 85, APPEND = 86, COPY = 87, DELETE = 88, CLOSE = 89, PANIC = 90, RECOVER = 91, ASSERT = 92, FFI = 93,
}

Variants§

§

VOID = 0

§

DUPLICATE = 1

§

LOAD_SLICE = 2

§

STORE_SLICE = 3

§

LOAD_ARRAY = 4

§

STORE_ARRAY = 5

§

LOAD_MAP = 6

§

STORE_MAP = 7

§

LOAD_STRUCT = 8

§

STORE_STRUCT = 9

§

LOAD_EMBEDDED = 10

§

STORE_EMBEDDED = 11

§

LOAD_PKG = 12

§

STORE_PKG = 13

§

LOAD_POINTER = 14

§

STORE_POINTER = 15

§

LOAD_UP_VALUE = 16

§

STORE_UP_VALUE = 17

§

ADD = 18

§

SUB = 19

§

MUL = 20

§

QUO = 21

§

REM = 22

§

AND = 23

§

OR = 24

§

XOR = 25

§

AND_NOT = 26

§

SHL = 27

§

SHR = 28

§

ADD_ASSIGN = 29

§

SUB_ASSIGN = 30

§

MUL_ASSIGN = 31

§

QUO_ASSIGN = 32

§

REM_ASSIGN = 33

§

AND_ASSIGN = 34

§

OR_ASSIGN = 35

§

XOR_ASSIGN = 36

§

AND_NOT_ASSIGN = 37

§

SHL_ASSIGN = 38

§

SHR_ASSIGN = 39

§

INC = 40

§

DEC = 41

§

UNARY_SUB = 42

§

UNARY_XOR = 43

§

NOT = 44

§

EQL = 45

§

NEQ = 46

§

LSS = 47

§

GTR = 48

§

LEQ = 49

§

GEQ = 50

§

REF = 51

§

REF_UPVALUE = 52

§

REF_SLICE_MEMBER = 53

§

REF_STRUCT_FIELD = 54

§

REF_EMBEDDED = 55

§

REF_PKG_MEMBER = 56

§

SEND = 57

§

RECV = 58

§

PACK_VARIADIC = 59

§

CALL = 60

§

RETURN = 61

§

JUMP = 62

§

JUMP_IF = 63

§

JUMP_IF_NOT = 64

§

SWITCH = 65

§

SELECT = 66

§

RANGE_INIT = 67

§

RANGE = 68

§

LOAD_INIT_FUNC = 69

§

BIND_METHOD = 70

§

BIND_I_METHOD = 71

§

CAST = 72

§

TYPE_ASSERT = 73

§

TYPE = 74

§

IMPORT = 75

§

SLICE = 76

§

CLOSURE = 77

§

LITERAL = 78

§

NEW = 79

§

MAKE = 80

§

COMPLEX = 81

§

REAL = 82

§

IMAG = 83

§

LEN = 84

§

CAP = 85

§

APPEND = 86

§

COPY = 87

§

DELETE = 88

§

CLOSE = 89

§

PANIC = 90

§

RECOVER = 91

§

ASSERT = 92

§

FFI = 93

Trait Implementations§

Source§

impl Clone for Opcode

Source§

fn clone(&self) -> Opcode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Opcode

Source§

impl Debug for Opcode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Opcode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Opcode

Source§

impl Hash for Opcode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Opcode

Source§

fn eq(&self, other: &Opcode) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Opcode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.