Skip to main content

OpCode

Enum OpCode 

Source
#[non_exhaustive]
#[repr(u8)]
pub enum OpCode {
Show 65 variants Int = 73, Long = 76, Float = 70, Unicode = 86, Get = 103, Put = 112, PersId = 80, Global = 99, Mark = 40, Stop = 46, Pop = 48, PopMark = 49, Dup = 50, None = 78, Reduce = 82, Build = 98, Dict = 100, List = 108, Tuple = 116, SetItem = 115, Append = 97, BinInt = 74, BinInt1 = 75, BinInt2 = 77, BinFloat = 71, BinString = 84, ShortBinString = 85, BinUnicode = 88, EmptyTuple = 41, EmptyList = 93, EmptyDict = 125, Appends = 101, SetItems = 117, BinGet = 104, LongBinGet = 106, BinPut = 113, LongBinPut = 114, BinPersId = 81, Proto = 128, NewObj = 129, Ext1 = 130, Ext2 = 131, Ext4 = 132, Tuple1 = 133, Tuple2 = 134, Tuple3 = 135, NewTrue = 136, NewFalse = 137, Long1 = 138, Long4 = 139, BinBytes = 66, ShortBinBytes = 67, ShortBinUnicode = 140, BinUnicode8 = 141, BinBytes8 = 142, EmptySet = 143, AddItems = 144, FrozenSet = 145, NewObjEx = 146, StackGlobal = 147, Memoize = 148, Frame = 149, ByteArray8 = 150, NextBuffer = 151, ReadonlyBuffer = 152,
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Int = 73

§

Long = 76

§

Float = 70

§

Unicode = 86

§

Get = 103

§

Put = 112

§

PersId = 80

§

Global = 99

§

Mark = 40

§

Stop = 46

§

Pop = 48

§

PopMark = 49

§

Dup = 50

§

None = 78

§

Reduce = 82

§

Build = 98

§

Dict = 100

§

List = 108

§

Tuple = 116

§

SetItem = 115

§

Append = 97

§

BinInt = 74

§

BinInt1 = 75

§

BinInt2 = 77

§

BinFloat = 71

§

BinString = 84

§

ShortBinString = 85

§

BinUnicode = 88

§

EmptyTuple = 41

§

EmptyList = 93

§

EmptyDict = 125

§

Appends = 101

§

SetItems = 117

§

BinGet = 104

§

LongBinGet = 106

§

BinPut = 113

§

LongBinPut = 114

§

BinPersId = 81

§

Proto = 128

§

NewObj = 129

§

Ext1 = 130

§

Ext2 = 131

§

Ext4 = 132

§

Tuple1 = 133

§

Tuple2 = 134

§

Tuple3 = 135

§

NewTrue = 136

§

NewFalse = 137

§

Long1 = 138

§

Long4 = 139

§

BinBytes = 66

§

ShortBinBytes = 67

§

ShortBinUnicode = 140

§

BinUnicode8 = 141

§

BinBytes8 = 142

§

EmptySet = 143

§

AddItems = 144

§

FrozenSet = 145

§

NewObjEx = 146

§

StackGlobal = 147

§

Memoize = 148

§

Frame = 149

§

ByteArray8 = 150

§

NextBuffer = 151

§

ReadonlyBuffer = 152

Trait Implementations§

Source§

impl Clone for OpCode

Source§

fn clone(&self) -> Self

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 Eq for OpCode

Source§

impl PartialEq for OpCode

Source§

fn eq(&self, other: &Self) -> 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

Source§

impl TryFrom<u8> for OpCode

Source§

type Error = u8

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

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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 = !

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

fn try_from(value: U) -> Result<T, !>

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.