Skip to main content

InstructionCode

Enum InstructionCode 

Source
#[repr(u8)]
pub enum InstructionCode {
Show 111 variants UNINITIALIZED = 0, STATEMENTS = 1, SHORT_STATEMENTS = 2, UNBOUNDED_STATEMENTS = 3, UNBOUNDED_STATEMENTS_END = 4, JUMP = 5, JUMP_IF_FALSE = 6, JUMP_WITH_VALUE = 7, APPLY_ZERO = 8, APPLY_SINGLE = 9, APPLY = 10, CALL_METHOD = 11, GET_ENTRY_DYNAMIC = 12, GET_ENTRY_INDEX = 13, GET_ENTRY_TEXT = 14, TAKE_ENTRY_DYNAMIC = 15, TAKE_ENTRY_INDEX = 16, TAKE_ENTRY_TEXT = 17, SET_ENTRY_DYNAMIC = 18, SET_ENTRY_INDEX = 19, SET_ENTRY_TEXT = 20, SENDER = 21, RECEIVER = 22, MATCHES = 23, STRUCTURAL_EQUAL = 24, NOT_STRUCTURAL_EQUAL = 25, EQUAL = 26, NOT_EQUAL = 27, IS = 28, ADD = 29, SUBTRACT = 30, MULTIPLY = 31, DIVIDE = 32, MODULO = 33, POWER = 34, AND = 35, OR = 36, NOT = 37, UNARY_PLUS = 38, UNARY_MINUS = 39, BITWISE_NOT = 40, INCREMENT = 41, DECREMENT = 42, APPEND_ENTRY = 43, CLEAR = 44, SPLICE = 45, SPLICE_DYNAMIC = 46, CLONE_STACK_VALUE = 47, BORROW_STACK_VALUE = 48, GET_STACK_VALUE_SHARED_REF = 49, GET_STACK_VALUE_SHARED_REF_MUT = 50, SET_STACK_VALUE = 51, PUSH_TO_STACK = 52, PUSH_LIST_TO_STACK = 53, TAKE_STACK_VALUE = 54, GET_ROOT_PROPERTY = 55, CALLABLE = 56, CALLABLE_DECLARATION = 57, ENTITY_TYPE_DEFINITION = 58, REQUEST_REMOTE_SHARED_REF = 59, REQUEST_REMOTE_SHARED_REF_MUT = 60, GET_CORE_LIB_VALUE = 61, GET_LOCAL_SHARED_REF = 62, SHARED_REF = 63, SHARED_REF_WITH_VALUE = 64, MOVE_WITH_VALUE = 65, DERIVE_SHARED_REF = 66, DERIVE_SHARED_REF_MUT = 67, CREATE_SHARED = 68, CREATE_SHARED_MUT = 69, SET_SHARED_CONTAINER_VALUE = 70, UNBOX = 71, ENTITY_VALUE = 72, TYPE_EXPRESSION = 73, TEXT = 74, INT_8 = 75, INT_16 = 76, INT_32 = 77, INT_64 = 78, INT_128 = 79, INT_BIG = 80, INT = 81, RANGE = 82, UINT_8 = 83, UINT_16 = 84, UINT_32 = 85, UINT_64 = 86, UINT_128 = 87, DECIMAL_F32 = 88, DECIMAL_F64 = 89, DECIMAL_BIG = 90, DECIMAL_AS_INT_32 = 91, DECIMAL_AS_INT_16 = 92, DECIMAL = 93, TRUE = 94, FALSE = 95, NULL = 96, SHORT_TEXT = 97, ENDPOINT = 98, BOXED_VALUE = 99, TAGGED_VALUE = 100, INSTANT = 101, LIST = 102, SHORT_LIST = 103, COMPACT_LIST = 104, MAP = 105, SHORT_MAP = 106, KEY_VALUE_SHORT_TEXT = 107, KEY_VALUE_DYNAMIC = 108, REMOTE_EXECUTION = 109, CLASSIFIED_VALUE = 110,
}

Variants§

§

UNINITIALIZED = 0

§

STATEMENTS = 1

§

SHORT_STATEMENTS = 2

§

UNBOUNDED_STATEMENTS = 3

§

UNBOUNDED_STATEMENTS_END = 4

§

JUMP = 5

§

JUMP_IF_FALSE = 6

§

JUMP_WITH_VALUE = 7

§

APPLY_ZERO = 8

§

APPLY_SINGLE = 9

§

APPLY = 10

§

CALL_METHOD = 11

§

GET_ENTRY_DYNAMIC = 12

§

GET_ENTRY_INDEX = 13

§

GET_ENTRY_TEXT = 14

§

TAKE_ENTRY_DYNAMIC = 15

§

TAKE_ENTRY_INDEX = 16

§

TAKE_ENTRY_TEXT = 17

§

SET_ENTRY_DYNAMIC = 18

§

SET_ENTRY_INDEX = 19

§

SET_ENTRY_TEXT = 20

§

SENDER = 21

§

RECEIVER = 22

§

MATCHES = 23

§

STRUCTURAL_EQUAL = 24

§

NOT_STRUCTURAL_EQUAL = 25

§

EQUAL = 26

§

NOT_EQUAL = 27

§

IS = 28

§

ADD = 29

§

SUBTRACT = 30

§

MULTIPLY = 31

§

DIVIDE = 32

§

MODULO = 33

§

POWER = 34

§

AND = 35

§

OR = 36

§

NOT = 37

§

UNARY_PLUS = 38

§

UNARY_MINUS = 39

§

BITWISE_NOT = 40

§

INCREMENT = 41

§

DECREMENT = 42

§

APPEND_ENTRY = 43

§

CLEAR = 44

§

SPLICE = 45

§

SPLICE_DYNAMIC = 46

§

CLONE_STACK_VALUE = 47

§

BORROW_STACK_VALUE = 48

§

GET_STACK_VALUE_SHARED_REF = 49

§

GET_STACK_VALUE_SHARED_REF_MUT = 50

§

SET_STACK_VALUE = 51

§

PUSH_TO_STACK = 52

§

PUSH_LIST_TO_STACK = 53

§

TAKE_STACK_VALUE = 54

§

GET_ROOT_PROPERTY = 55

§

CALLABLE = 56

§

CALLABLE_DECLARATION = 57

§

ENTITY_TYPE_DEFINITION = 58

§

REQUEST_REMOTE_SHARED_REF = 59

§

REQUEST_REMOTE_SHARED_REF_MUT = 60

§

GET_CORE_LIB_VALUE = 61

§

GET_LOCAL_SHARED_REF = 62

§

SHARED_REF = 63

§

SHARED_REF_WITH_VALUE = 64

§

MOVE_WITH_VALUE = 65

§

DERIVE_SHARED_REF = 66

§

DERIVE_SHARED_REF_MUT = 67

§

CREATE_SHARED = 68

§

CREATE_SHARED_MUT = 69

§

SET_SHARED_CONTAINER_VALUE = 70

§

UNBOX = 71

§

ENTITY_VALUE = 72

value with entity classification

§

TYPE_EXPRESSION = 73

§

TEXT = 74

§

INT_8 = 75

§

INT_16 = 76

§

INT_32 = 77

§

INT_64 = 78

§

INT_128 = 79

§

INT_BIG = 80

§

INT = 81

§

RANGE = 82

§

UINT_8 = 83

§

UINT_16 = 84

§

UINT_32 = 85

§

UINT_64 = 86

§

UINT_128 = 87

§

DECIMAL_F32 = 88

§

DECIMAL_F64 = 89

§

DECIMAL_BIG = 90

§

DECIMAL_AS_INT_32 = 91

§

DECIMAL_AS_INT_16 = 92

§

DECIMAL = 93

§

TRUE = 94

§

FALSE = 95

§

NULL = 96

§

SHORT_TEXT = 97

§

ENDPOINT = 98

§

BOXED_VALUE = 99

§

TAGGED_VALUE = 100

§

INSTANT = 101

§

LIST = 102

§

SHORT_LIST = 103

§

COMPACT_LIST = 104

§

MAP = 105

§

SHORT_MAP = 106

§

KEY_VALUE_SHORT_TEXT = 107

§

KEY_VALUE_DYNAMIC = 108

§

REMOTE_EXECUTION = 109

§

CLASSIFIED_VALUE = 110

Implementations§

Source§

impl InstructionCode

Source

pub const fn as_u8(&self) -> u8

Trait Implementations§

Source§

impl BinRead for InstructionCode

Source§

type Args<'__binrw_generated_args_lifetime> = ()

The type used for the args parameter of read_args() and read_options(). Read more
Source§

fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>

Read Self from the reader using the given Endian and arguments. Read more
Source§

fn read<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments. Read more
Source§

fn read_be<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming big-endian byte order. Read more
Source§

fn read_le<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming little-endian byte order. Read more
Source§

fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read T from the reader assuming native-endian byte order. Read more
Source§

fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian,

Read Self from the reader using the given arguments. Read more
Source§

fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming big-endian byte order, using the given arguments. Read more
Source§

fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming little-endian byte order, using the given arguments. Read more
Source§

fn read_ne_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read T from the reader, assuming native-endian byte order, using the given arguments. Read more
Source§

impl BinWrite for InstructionCode

Source§

type Args<'__binrw_generated_args_lifetime> = ()

The type used for the args parameter of write_args() and write_options(). Read more
Source§

fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>

Write Self to the writer using the given Endian and arguments. Read more
Source§

fn write<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self: WriteEndian, Self::Args<'a>: for<'a> Required,

Write Self to the writer using default arguments. Read more
Source§

fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming big-endian byte order. Read more
Source§

fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming little-endian byte order. Read more
Source§

fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming native-endian byte order. Read more
Source§

fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek, Self: WriteEndian,

Write Self to the writer using the given arguments. Read more
Source§

fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming big-endian byte order, using the given arguments. Read more
Source§

fn write_le_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming little-endian byte order, using the given arguments. Read more
Source§

fn write_ne_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming native-endian byte order, using the given arguments. Read more
Source§

impl Clone for InstructionCode

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 InstructionCode

Source§

impl Debug for InstructionCode

Source§

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

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

impl Display for InstructionCode

Source§

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

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

impl Eq for InstructionCode

Source§

impl From<&ArithmeticOperator> for InstructionCode

Source§

fn from(op: &ArithmeticOperator) -> Self

Converts to this type from the input type.
Source§

impl From<&ArithmeticUnaryOperator> for InstructionCode

Source§

fn from(op: &ArithmeticUnaryOperator) -> Self

Converts to this type from the input type.
Source§

impl From<&BinaryOperator> for InstructionCode

Source§

fn from(op: &BinaryOperator) -> Self

Converts to this type from the input type.
Source§

impl From<&BitwiseOperator> for InstructionCode

Source§

fn from(op: &BitwiseOperator) -> Self

Converts to this type from the input type.
Source§

impl From<&BitwiseUnaryOperator> for InstructionCode

Source§

fn from(op: &BitwiseUnaryOperator) -> Self

Converts to this type from the input type.
Source§

impl From<&ComparisonOperator> for InstructionCode

Source§

fn from(op: &ComparisonOperator) -> Self

Converts to this type from the input type.
Source§

impl From<&InstructionCode> for BinaryOperator

Source§

fn from(code: &InstructionCode) -> Self

Converts to this type from the input type.
Source§

impl From<&LogicalOperator> for InstructionCode

Source§

fn from(op: &LogicalOperator) -> Self

Converts to this type from the input type.
Source§

impl From<&LogicalUnaryOperator> for InstructionCode

Source§

fn from(op: &LogicalUnaryOperator) -> Self

Converts to this type from the input type.
Source§

impl From<&RangeOperator> for InstructionCode

Source§

fn from(op: &RangeOperator) -> Self

Converts to this type from the input type.
Source§

impl From<&SharedValueUnaryOperator> for InstructionCode

Source§

fn from(op: &SharedValueUnaryOperator) -> Self

Converts to this type from the input type.
Source§

impl From<&UnaryOperator> for InstructionCode

Source§

fn from(op: &UnaryOperator) -> Self

Converts to this type from the input type.
Source§

impl From<BinaryOperator> for InstructionCode

Source§

fn from(op: BinaryOperator) -> Self

Converts to this type from the input type.
Source§

impl From<ComparisonOperator> for InstructionCode

Source§

fn from(op: ComparisonOperator) -> Self

Converts to this type from the input type.
Source§

impl From<InstructionCode> for BinaryOperator

Source§

fn from(code: InstructionCode) -> Self

Converts to this type from the input type.
Source§

impl From<InstructionCode> for u8

Source§

fn from(enum_value: InstructionCode) -> Self

Converts to this type from the input type.
Source§

impl IntoEnumIterator for InstructionCode

Source§

impl PartialEq for InstructionCode

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 ReadEndian for InstructionCode

Source§

const ENDIAN: EndianKind = <u8 as binrw::meta::ReadEndian>::ENDIAN

The endianness of the type.
Source§

impl StructuralPartialEq for InstructionCode

Source§

impl TryFrom<u8> for InstructionCode

Source§

type Error = TryFromPrimitiveError<InstructionCode>

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

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for InstructionCode

Source§

impl WriteEndian for InstructionCode

Source§

const ENDIAN: EndianKind = <u8 as binrw::meta::WriteEndian>::ENDIAN

The endianness of the type.

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<T> CustomError for T
where T: Display + Debug + Send + Sync + 'static,

Source§

fn as_any(&self) -> &(dyn Any + Send + Sync + 'static)

Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + Send + Sync + 'static)

Source§

fn as_box_any(self: Box<T>) -> Box<dyn Any + Send + Sync>

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> DynEq for T
where T: Any,

Source§

default fn dyn_eq(&self, _other: &(dyn Any + 'static)) -> bool

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TryClone for T

Source§

default fn try_clone(&self) -> Result<Value, ()>

Attempts to clone Self into a new Value.
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.
Source§

impl<T, U> TypeSubset<U> for T
where U: TypeSuperset<T>,

Source§

fn is_subset_of(&self, other: &U) -> bool

Returns whether self is a subset of type