Enum artichoke_backend::sys::mrb_insn

source ·
#[repr(u32)]
pub enum mrb_insn {
Show 106 variants OP_NOP = 0, OP_MOVE = 1, OP_LOADL = 2, OP_LOADI = 3, OP_LOADINEG = 4, OP_LOADI__1 = 5, OP_LOADI_0 = 6, OP_LOADI_1 = 7, OP_LOADI_2 = 8, OP_LOADI_3 = 9, OP_LOADI_4 = 10, OP_LOADI_5 = 11, OP_LOADI_6 = 12, OP_LOADI_7 = 13, OP_LOADI16 = 14, OP_LOADI32 = 15, OP_LOADSYM = 16, OP_LOADNIL = 17, OP_LOADSELF = 18, OP_LOADT = 19, OP_LOADF = 20, OP_GETGV = 21, OP_SETGV = 22, OP_GETSV = 23, OP_SETSV = 24, OP_GETIV = 25, OP_SETIV = 26, OP_GETCV = 27, OP_SETCV = 28, OP_GETCONST = 29, OP_SETCONST = 30, OP_GETMCNST = 31, OP_SETMCNST = 32, OP_GETUPVAR = 33, OP_SETUPVAR = 34, OP_GETIDX = 35, OP_SETIDX = 36, OP_JMP = 37, OP_JMPIF = 38, OP_JMPNOT = 39, OP_JMPNIL = 40, OP_JMPUW = 41, OP_EXCEPT = 42, OP_RESCUE = 43, OP_RAISEIF = 44, OP_SSEND = 45, OP_SSENDB = 46, OP_SEND = 47, OP_SENDB = 48, OP_CALL = 49, OP_SUPER = 50, OP_ARGARY = 51, OP_ENTER = 52, OP_KEY_P = 53, OP_KEYEND = 54, OP_KARG = 55, OP_RETURN = 56, OP_RETURN_BLK = 57, OP_BREAK = 58, OP_BLKPUSH = 59, OP_ADD = 60, OP_ADDI = 61, OP_SUB = 62, OP_SUBI = 63, OP_MUL = 64, OP_DIV = 65, OP_EQ = 66, OP_LT = 67, OP_LE = 68, OP_GT = 69, OP_GE = 70, OP_ARRAY = 71, OP_ARRAY2 = 72, OP_ARYCAT = 73, OP_ARYPUSH = 74, OP_ARYSPLAT = 75, OP_AREF = 76, OP_ASET = 77, OP_APOST = 78, OP_INTERN = 79, OP_SYMBOL = 80, OP_STRING = 81, OP_STRCAT = 82, OP_HASH = 83, OP_HASHADD = 84, OP_HASHCAT = 85, OP_LAMBDA = 86, OP_BLOCK = 87, OP_METHOD = 88, OP_RANGE_INC = 89, OP_RANGE_EXC = 90, OP_OCLASS = 91, OP_CLASS = 92, OP_MODULE = 93, OP_EXEC = 94, OP_DEF = 95, OP_ALIAS = 96, OP_UNDEF = 97, OP_SCLASS = 98, OP_TCLASS = 99, OP_DEBUG = 100, OP_ERR = 101, OP_EXT1 = 102, OP_EXT2 = 103, OP_EXT3 = 104, OP_STOP = 105,
}

Variants§

§

OP_NOP = 0

§

OP_MOVE = 1

§

OP_LOADL = 2

§

OP_LOADI = 3

§

OP_LOADINEG = 4

§

OP_LOADI__1 = 5

§

OP_LOADI_0 = 6

§

OP_LOADI_1 = 7

§

OP_LOADI_2 = 8

§

OP_LOADI_3 = 9

§

OP_LOADI_4 = 10

§

OP_LOADI_5 = 11

§

OP_LOADI_6 = 12

§

OP_LOADI_7 = 13

§

OP_LOADI16 = 14

§

OP_LOADI32 = 15

§

OP_LOADSYM = 16

§

OP_LOADNIL = 17

§

OP_LOADSELF = 18

§

OP_LOADT = 19

§

OP_LOADF = 20

§

OP_GETGV = 21

§

OP_SETGV = 22

§

OP_GETSV = 23

§

OP_SETSV = 24

§

OP_GETIV = 25

§

OP_SETIV = 26

§

OP_GETCV = 27

§

OP_SETCV = 28

§

OP_GETCONST = 29

§

OP_SETCONST = 30

§

OP_GETMCNST = 31

§

OP_SETMCNST = 32

§

OP_GETUPVAR = 33

§

OP_SETUPVAR = 34

§

OP_GETIDX = 35

§

OP_SETIDX = 36

§

OP_JMP = 37

§

OP_JMPIF = 38

§

OP_JMPNOT = 39

§

OP_JMPNIL = 40

§

OP_JMPUW = 41

§

OP_EXCEPT = 42

§

OP_RESCUE = 43

§

OP_RAISEIF = 44

§

OP_SSEND = 45

§

OP_SSENDB = 46

§

OP_SEND = 47

§

OP_SENDB = 48

§

OP_CALL = 49

§

OP_SUPER = 50

§

OP_ARGARY = 51

§

OP_ENTER = 52

§

OP_KEY_P = 53

§

OP_KEYEND = 54

§

OP_KARG = 55

§

OP_RETURN = 56

§

OP_RETURN_BLK = 57

§

OP_BREAK = 58

§

OP_BLKPUSH = 59

§

OP_ADD = 60

§

OP_ADDI = 61

§

OP_SUB = 62

§

OP_SUBI = 63

§

OP_MUL = 64

§

OP_DIV = 65

§

OP_EQ = 66

§

OP_LT = 67

§

OP_LE = 68

§

OP_GT = 69

§

OP_GE = 70

§

OP_ARRAY = 71

§

OP_ARRAY2 = 72

§

OP_ARYCAT = 73

§

OP_ARYPUSH = 74

§

OP_ARYSPLAT = 75

§

OP_AREF = 76

§

OP_ASET = 77

§

OP_APOST = 78

§

OP_INTERN = 79

§

OP_SYMBOL = 80

§

OP_STRING = 81

§

OP_STRCAT = 82

§

OP_HASH = 83

§

OP_HASHADD = 84

§

OP_HASHCAT = 85

§

OP_LAMBDA = 86

§

OP_BLOCK = 87

§

OP_METHOD = 88

§

OP_RANGE_INC = 89

§

OP_RANGE_EXC = 90

§

OP_OCLASS = 91

§

OP_CLASS = 92

§

OP_MODULE = 93

§

OP_EXEC = 94

§

OP_DEF = 95

§

OP_ALIAS = 96

§

OP_UNDEF = 97

§

OP_SCLASS = 98

§

OP_TCLASS = 99

§

OP_DEBUG = 100

§

OP_ERR = 101

§

OP_EXT1 = 102

§

OP_EXT2 = 103

§

OP_EXT3 = 104

§

OP_STOP = 105

Trait Implementations§

source§

impl Clone for mrb_insn

source§

fn clone(&self) -> mrb_insn

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for mrb_insn

source§

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

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

impl Hash for mrb_insn

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 mrb_insn

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for mrb_insn

source§

impl Eq for mrb_insn

source§

impl StructuralPartialEq for mrb_insn

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> 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,

§

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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.