artichoke_backend::sys

Enum 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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> CloneToUninit for T
where T: Clone,

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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, 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.