#[repr(u8)]pub enum OpCode {
Show 196 variants
PushInt8 = 0,
PushInt16 = 1,
PushInt32 = 2,
PushInt64 = 3,
PushInt128 = 4,
PushInt256 = 5,
PushTrue = 8,
PushFalse = 9,
PushA = 10,
PushNull = 11,
PushData1 = 12,
PushData2 = 13,
PushData4 = 14,
PushM1 = 15,
Push0 = 16,
Push1 = 17,
Push2 = 18,
Push3 = 19,
Push4 = 20,
Push5 = 21,
Push6 = 22,
Push7 = 23,
Push8 = 24,
Push9 = 25,
Push10 = 26,
Push11 = 27,
Push12 = 28,
Push13 = 29,
Push14 = 30,
Push15 = 31,
Push16 = 32,
Nop = 33,
Jmp = 34,
JmpL = 35,
JmpIf = 36,
JmpIfL = 37,
JmpIfNot = 38,
JmpIfNotL = 39,
JmpEq = 40,
JmpEqL = 41,
JmpNe = 42,
JmpNeL = 43,
JmpGt = 44,
JmpGtL = 45,
JmpGe = 46,
JmpGeL = 47,
JmpLt = 48,
JmpLtL = 49,
JmpLe = 50,
JmpLeL = 51,
Call = 52,
CallL = 53,
CallA = 54,
CallT = 55,
Abort = 56,
Assert = 57,
Throw = 58,
Try = 59,
TryL = 60,
EndTry = 61,
EndTryL = 62,
EndFinally = 63,
Ret = 64,
Syscall = 65,
Depth = 67,
Drop = 69,
Nip = 70,
Xdrop = 72,
Clear = 73,
Dup = 74,
Over = 75,
Pick = 77,
Tuck = 78,
Swap = 80,
Rot = 81,
Roll = 82,
Reverse3 = 83,
Reverse4 = 84,
ReverseN = 85,
InitSSLot = 86,
InitSlot = 87,
LdSFLd0 = 88,
LdSFLd1 = 89,
LdSFLd2 = 90,
LdSFLd3 = 91,
LdSFLd4 = 92,
LdSFLd5 = 93,
LdSFLd6 = 94,
LdSFLd = 95,
StSFLd0 = 96,
StSFLd1 = 97,
StSFLd2 = 98,
StSFLd3 = 99,
StSFLd4 = 100,
StSFLd5 = 101,
StSFLd6 = 102,
StSFLd = 103,
LdLoc0 = 104,
LdLoc1 = 105,
LdLoc2 = 106,
LdLoc3 = 107,
LdLoc4 = 108,
LdLoc5 = 109,
LdLoc6 = 110,
LdLoc = 111,
StLoc0 = 112,
StLoc1 = 113,
StLoc2 = 114,
StLoc3 = 115,
StLoc4 = 116,
StLoc5 = 117,
StLoc6 = 118,
StLoc = 119,
LdArg0 = 120,
LdArg1 = 121,
LdArg2 = 122,
LdArg3 = 123,
LdArg4 = 124,
LdArg5 = 125,
LdArg6 = 126,
LdArg = 127,
StArg0 = 128,
StArg1 = 129,
StArg2 = 130,
StArg3 = 131,
StArg4 = 132,
StArg5 = 133,
StArg6 = 134,
StArg = 135,
NewBuffer = 136,
MemCpy = 137,
Cat = 139,
Substr = 140,
Left = 141,
Right = 142,
Invert = 144,
And = 145,
Or = 146,
Xor = 147,
Equal = 151,
NotEqual = 152,
Sign = 153,
Abs = 154,
Negate = 155,
Inc = 156,
Dec = 157,
Add = 158,
Sub = 159,
Mul = 160,
Div = 161,
Mod = 162,
Pow = 163,
Sqrt = 164,
ModMul = 165,
ModPow = 166,
Shl = 168,
Shr = 169,
Not = 170,
BoolAnd = 171,
BoolOr = 172,
Nz = 177,
NumEqual = 179,
NumNotEqual = 180,
Lt = 181,
Le = 182,
Gt = 183,
Ge = 184,
Min = 185,
Max = 186,
Within = 187,
PackMap = 190,
PackStruct = 191,
Pack = 192,
Unpack = 193,
NewArray0 = 194,
NewArray = 195,
NewArrayT = 196,
NewStruct0 = 197,
NewStruct = 198,
NewMap = 200,
Size = 202,
HasKey = 203,
Keys = 204,
Values = 205,
PickItem = 206,
Append = 207,
SetItem = 208,
ReverseItems = 209,
Remove = 210,
ClearItems = 211,
PopItem = 212,
IsNull = 216,
IsType = 217,
Convert = 219,
AbortMsg = 224,
AssertMsg = 225,
}
Variants§
PushInt8 = 0
PushInt16 = 1
PushInt32 = 2
PushInt64 = 3
PushInt128 = 4
PushInt256 = 5
PushTrue = 8
PushFalse = 9
PushA = 10
PushNull = 11
PushData1 = 12
PushData2 = 13
PushData4 = 14
PushM1 = 15
Push0 = 16
Push1 = 17
Push2 = 18
Push3 = 19
Push4 = 20
Push5 = 21
Push6 = 22
Push7 = 23
Push8 = 24
Push9 = 25
Push10 = 26
Push11 = 27
Push12 = 28
Push13 = 29
Push14 = 30
Push15 = 31
Push16 = 32
Nop = 33
Jmp = 34
JmpL = 35
JmpIf = 36
JmpIfL = 37
JmpIfNot = 38
JmpIfNotL = 39
JmpEq = 40
JmpEqL = 41
JmpNe = 42
JmpNeL = 43
JmpGt = 44
JmpGtL = 45
JmpGe = 46
JmpGeL = 47
JmpLt = 48
JmpLtL = 49
JmpLe = 50
JmpLeL = 51
Call = 52
CallL = 53
CallA = 54
CallT = 55
Abort = 56
Assert = 57
Throw = 58
Try = 59
TryL = 60
EndTry = 61
EndTryL = 62
EndFinally = 63
Ret = 64
Syscall = 65
Depth = 67
Drop = 69
Nip = 70
Xdrop = 72
Clear = 73
Dup = 74
Over = 75
Pick = 77
Tuck = 78
Swap = 80
Rot = 81
Roll = 82
Reverse3 = 83
Reverse4 = 84
ReverseN = 85
InitSSLot = 86
InitSlot = 87
LdSFLd0 = 88
LdSFLd1 = 89
LdSFLd2 = 90
LdSFLd3 = 91
LdSFLd4 = 92
LdSFLd5 = 93
LdSFLd6 = 94
LdSFLd = 95
StSFLd0 = 96
StSFLd1 = 97
StSFLd2 = 98
StSFLd3 = 99
StSFLd4 = 100
StSFLd5 = 101
StSFLd6 = 102
StSFLd = 103
LdLoc0 = 104
LdLoc1 = 105
LdLoc2 = 106
LdLoc3 = 107
LdLoc4 = 108
LdLoc5 = 109
LdLoc6 = 110
LdLoc = 111
StLoc0 = 112
StLoc1 = 113
StLoc2 = 114
StLoc3 = 115
StLoc4 = 116
StLoc5 = 117
StLoc6 = 118
StLoc = 119
LdArg0 = 120
LdArg1 = 121
LdArg2 = 122
LdArg3 = 123
LdArg4 = 124
LdArg5 = 125
LdArg6 = 126
LdArg = 127
StArg0 = 128
StArg1 = 129
StArg2 = 130
StArg3 = 131
StArg4 = 132
StArg5 = 133
StArg6 = 134
StArg = 135
NewBuffer = 136
MemCpy = 137
Cat = 139
Substr = 140
Left = 141
Right = 142
Invert = 144
And = 145
Or = 146
Xor = 147
Equal = 151
NotEqual = 152
Sign = 153
Abs = 154
Negate = 155
Inc = 156
Dec = 157
Add = 158
Sub = 159
Mul = 160
Div = 161
Mod = 162
Pow = 163
Sqrt = 164
ModMul = 165
ModPow = 166
Shl = 168
Shr = 169
Not = 170
BoolAnd = 171
BoolOr = 172
Nz = 177
NumEqual = 179
NumNotEqual = 180
Lt = 181
Le = 182
Gt = 183
Ge = 184
Min = 185
Max = 186
Within = 187
PackMap = 190
PackStruct = 191
Pack = 192
Unpack = 193
NewArray0 = 194
NewArray = 195
NewArrayT = 196
NewStruct0 = 197
NewStruct = 198
NewMap = 200
Size = 202
HasKey = 203
Keys = 204
Values = 205
PickItem = 206
Append = 207
SetItem = 208
ReverseItems = 209
Remove = 210
ClearItems = 211
PopItem = 212
IsNull = 216
IsType = 217
Convert = 219
AbortMsg = 224
AssertMsg = 225
Implementations§
Trait Implementations§
impl Copy for OpCode
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.