#[repr(u8)]pub enum Opcode {
Show 163 variants
Lddw = 0,
Ldxb = 1,
Ldxh = 2,
Ldxw = 3,
Ldxdw = 4,
Stb = 5,
Sth = 6,
Stw = 7,
Stdw = 8,
Stxb = 9,
Stxh = 10,
Stxw = 11,
Stxdw = 12,
Add32 = 13,
Add32Imm = 14,
Add32Reg = 15,
Sub32 = 16,
Sub32Imm = 17,
Sub32Reg = 18,
Mul32 = 19,
Mul32Imm = 20,
Mul32Reg = 21,
Div32 = 22,
Div32Imm = 23,
Div32Reg = 24,
Or32 = 25,
Or32Imm = 26,
Or32Reg = 27,
And32 = 28,
And32Imm = 29,
And32Reg = 30,
Lsh32 = 31,
Lsh32Imm = 32,
Lsh32Reg = 33,
Rsh32 = 34,
Rsh32Imm = 35,
Rsh32Reg = 36,
Mod32 = 37,
Mod32Imm = 38,
Mod32Reg = 39,
Xor32 = 40,
Xor32Imm = 41,
Xor32Reg = 42,
Mov32 = 43,
Mov32Imm = 44,
Mov32Reg = 45,
Arsh32 = 46,
Arsh32Imm = 47,
Arsh32Reg = 48,
Lmul32 = 49,
Lmul32Imm = 50,
Lmul32Reg = 51,
Udiv32 = 52,
Udiv32Imm = 53,
Udiv32Reg = 54,
Urem32 = 55,
Urem32Imm = 56,
Urem32Reg = 57,
Sdiv32 = 58,
Sdiv32Imm = 59,
Sdiv32Reg = 60,
Srem32 = 61,
Srem32Imm = 62,
Srem32Reg = 63,
Le = 64,
Be = 65,
Add64 = 66,
Add64Imm = 67,
Add64Reg = 68,
Sub64 = 69,
Sub64Imm = 70,
Sub64Reg = 71,
Mul64 = 72,
Mul64Imm = 73,
Mul64Reg = 74,
Div64 = 75,
Div64Imm = 76,
Div64Reg = 77,
Or64 = 78,
Or64Imm = 79,
Or64Reg = 80,
And64 = 81,
And64Imm = 82,
And64Reg = 83,
Lsh64 = 84,
Lsh64Imm = 85,
Lsh64Reg = 86,
Rsh64 = 87,
Rsh64Imm = 88,
Rsh64Reg = 89,
Mod64 = 90,
Mod64Imm = 91,
Mod64Reg = 92,
Xor64 = 93,
Xor64Imm = 94,
Xor64Reg = 95,
Mov64 = 96,
Mov64Imm = 97,
Mov64Reg = 98,
Arsh64 = 99,
Arsh64Imm = 100,
Arsh64Reg = 101,
Hor64Imm = 102,
Lmul64 = 103,
Lmul64Imm = 104,
Lmul64Reg = 105,
Uhmul64 = 106,
Uhmul64Imm = 107,
Uhmul64Reg = 108,
Udiv64 = 109,
Udiv64Imm = 110,
Udiv64Reg = 111,
Urem64 = 112,
Urem64Imm = 113,
Urem64Reg = 114,
Shmul64 = 115,
Shmul64Imm = 116,
Shmul64Reg = 117,
Sdiv64 = 118,
Sdiv64Imm = 119,
Sdiv64Reg = 120,
Srem64 = 121,
Srem64Imm = 122,
Srem64Reg = 123,
Neg32 = 124,
Neg64 = 125,
Ja = 126,
Jeq = 127,
JeqImm = 128,
JeqReg = 129,
Jgt = 130,
JgtImm = 131,
JgtReg = 132,
Jge = 133,
JgeImm = 134,
JgeReg = 135,
Jlt = 136,
JltImm = 137,
JltReg = 138,
Jle = 139,
JleImm = 140,
JleReg = 141,
Jset = 142,
JsetImm = 143,
JsetReg = 144,
Jne = 145,
JneImm = 146,
JneReg = 147,
Jsgt = 148,
JsgtImm = 149,
JsgtReg = 150,
Jsge = 151,
JsgeImm = 152,
JsgeReg = 153,
Jslt = 154,
JsltImm = 155,
JsltReg = 156,
Jsle = 157,
JsleImm = 158,
JsleReg = 159,
Call = 160,
Callx = 161,
Exit = 162,
}Variants§
Lddw = 0
Ldxb = 1
Ldxh = 2
Ldxw = 3
Ldxdw = 4
Stb = 5
Sth = 6
Stw = 7
Stdw = 8
Stxb = 9
Stxh = 10
Stxw = 11
Stxdw = 12
Add32 = 13
Add32Imm = 14
Add32Reg = 15
Sub32 = 16
Sub32Imm = 17
Sub32Reg = 18
Mul32 = 19
Mul32Imm = 20
Mul32Reg = 21
Div32 = 22
Div32Imm = 23
Div32Reg = 24
Or32 = 25
Or32Imm = 26
Or32Reg = 27
And32 = 28
And32Imm = 29
And32Reg = 30
Lsh32 = 31
Lsh32Imm = 32
Lsh32Reg = 33
Rsh32 = 34
Rsh32Imm = 35
Rsh32Reg = 36
Mod32 = 37
Mod32Imm = 38
Mod32Reg = 39
Xor32 = 40
Xor32Imm = 41
Xor32Reg = 42
Mov32 = 43
Mov32Imm = 44
Mov32Reg = 45
Arsh32 = 46
Arsh32Imm = 47
Arsh32Reg = 48
Lmul32 = 49
Lmul32Imm = 50
Lmul32Reg = 51
Udiv32 = 52
Udiv32Imm = 53
Udiv32Reg = 54
Urem32 = 55
Urem32Imm = 56
Urem32Reg = 57
Sdiv32 = 58
Sdiv32Imm = 59
Sdiv32Reg = 60
Srem32 = 61
Srem32Imm = 62
Srem32Reg = 63
Le = 64
Be = 65
Add64 = 66
Add64Imm = 67
Add64Reg = 68
Sub64 = 69
Sub64Imm = 70
Sub64Reg = 71
Mul64 = 72
Mul64Imm = 73
Mul64Reg = 74
Div64 = 75
Div64Imm = 76
Div64Reg = 77
Or64 = 78
Or64Imm = 79
Or64Reg = 80
And64 = 81
And64Imm = 82
And64Reg = 83
Lsh64 = 84
Lsh64Imm = 85
Lsh64Reg = 86
Rsh64 = 87
Rsh64Imm = 88
Rsh64Reg = 89
Mod64 = 90
Mod64Imm = 91
Mod64Reg = 92
Xor64 = 93
Xor64Imm = 94
Xor64Reg = 95
Mov64 = 96
Mov64Imm = 97
Mov64Reg = 98
Arsh64 = 99
Arsh64Imm = 100
Arsh64Reg = 101
Hor64Imm = 102
Lmul64 = 103
Lmul64Imm = 104
Lmul64Reg = 105
Uhmul64 = 106
Uhmul64Imm = 107
Uhmul64Reg = 108
Udiv64 = 109
Udiv64Imm = 110
Udiv64Reg = 111
Urem64 = 112
Urem64Imm = 113
Urem64Reg = 114
Shmul64 = 115
Shmul64Imm = 116
Shmul64Reg = 117
Sdiv64 = 118
Sdiv64Imm = 119
Sdiv64Reg = 120
Srem64 = 121
Srem64Imm = 122
Srem64Reg = 123
Neg32 = 124
Neg64 = 125
Ja = 126
Jeq = 127
JeqImm = 128
JeqReg = 129
Jgt = 130
JgtImm = 131
JgtReg = 132
Jge = 133
JgeImm = 134
JgeReg = 135
Jlt = 136
JltImm = 137
JltReg = 138
Jle = 139
JleImm = 140
JleReg = 141
Jset = 142
JsetImm = 143
JsetReg = 144
Jne = 145
JneImm = 146
JneReg = 147
Jsgt = 148
JsgtImm = 149
JsgtReg = 150
Jsge = 151
JsgeImm = 152
JsgeReg = 153
Jslt = 154
JsltImm = 155
JsltReg = 156
Jsle = 157
JsleImm = 158
JsleReg = 159
Call = 160
Callx = 161
Exit = 162
Implementations§
Trait Implementations§
Source§impl FromPrimitive for Opcode
impl FromPrimitive for Opcode
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreimpl Copy for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
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