#[repr(u8)]pub enum InstructionCode {
Show 189 variants
EXIT = 0,
CLOSE_AND_STORE = 1,
SCOPE_START = 2,
SCOPE_END = 3,
CACHE_POINT = 4,
CACHE_RESET = 5,
VAR_RESULT = 6,
SET_VAR_RESULT = 7,
SET_VAR_RESULT_REFERENCE = 8,
VAR_RESULT_ACTION = 9,
VAR_SUB_RESULT = 10,
SET_VAR_SUB_RESULT = 11,
SET_VAR_SUB_RESULT_REFERENCE = 12,
VAR_SUB_RESULT_ACTION = 13,
VAR_VOID = 14,
SET_VAR_VOID = 15,
SET_VAR_VOID_REFERENCE = 16,
VAR_VOID_ACTION = 17,
_VAR_ORIGIN = 18,
_SET_VAR_ORIGIN = 19,
_SET_VAR_ORIGIN_REFERENCE = 20,
_VAR_ORIGIN_ACTION = 21,
VAR_IT = 22,
SET_VAR_IT = 23,
SET_VAR_IT_REFERENCE = 24,
VAR_IT_ACTION = 25,
VAR_REMOTE = 26,
VAR_REMOTE_ACTION = 27,
VAR_ORIGIN = 28,
VAR_ENDPOINT = 29,
VAR_ENTRYPOINT = 30,
VAR_STD = 31,
VAR_META = 32,
VAR_PUBLIC = 33,
VAR_THIS = 34,
VAR_LOCATION = 35,
VAR_ENV = 36,
APPLY_ZERO = 37,
APPLY_SINGLE = 38,
APPLY = 39,
RETURN = 40,
TEMPLATE = 41,
EXTENDS = 42,
IMPLEMENTS = 43,
MATCHES = 44,
DEBUGGER = 45,
JMP = 46,
JTR = 47,
JFA = 48,
COUNT = 49,
ABOUT = 50,
NEW = 51,
DELETE_POINTER = 52,
COPY = 53,
CLONE = 54,
ORIGIN = 55,
SUBSCRIBERS = 56,
PLAIN_SCOPE = 57,
TRANSFORM = 58,
OBSERVE = 59,
RUN = 60,
AWAIT = 61,
DEFER = 62,
FUNCTION = 63,
ASSERT = 64,
ITERATOR = 65,
NEXT = 66,
FREEZE = 67,
SEAL = 68,
HAS = 69,
KEYS = 70,
GET_TYPE = 71,
GET = 72,
RANGE = 73,
RESOLVE_RELATIVE_PATH = 74,
DO = 75,
DEFAULT = 76,
COLLAPSE = 77,
RESPONSE = 78,
CLONE_COLLAPSE = 79,
STRUCTURAL_EQUAL = 80,
NOT_STRUCTURAL_EQUAL = 81,
EQUAL = 82,
NOT_EQUAL = 83,
GREATER = 84,
LESS = 85,
GREATER_EQUAL = 86,
LESS_EQUAL = 87,
IS = 88,
AND = 89,
OR = 90,
ADD = 91,
SUBTRACT = 92,
MULTIPLY = 93,
DIVIDE = 94,
NOT = 95,
MODULO = 96,
POWER = 97,
INCREMENT = 98,
DECREMENT = 99,
UNARY_PLUS = 100,
UNARY_MINUS = 101,
BITWISE_NOT = 102,
UNION = 103,
ASSIGN = 104,
ADD_ASSIGN = 105,
SUBTRACT_ASSIGN = 106,
MULTIPLY_ASSIGN = 107,
DIVIDE_ASSIGN = 108,
MODULO_ASSIGN = 109,
POWER_ASSIGN = 110,
GET_SLOT = 111,
SET_SLOT = 112,
ALLOCATE_SLOT = 113,
SLOT_ACTION = 114,
DROP_SLOT = 115,
LABEL = 116,
SET_LABEL = 117,
INIT_LABEL = 118,
LABEL_ACTION = 119,
GET_REF = 120,
GET_INTERNAL_REF = 121,
GET_LOCAL_REF = 122,
GET_OR_INIT_REF = 123,
POINTER_ACTION = 124,
CREATE_REF = 125,
CREATE_REF_MUT = 126,
CREATE_REF_FINAL = 127,
SET_REF = 128,
ASSIGN_TO_REF = 129,
DEREF = 130,
CHILD_GET = 131,
CHILD_SET = 132,
CHILD_SET_REFERENCE = 133,
CHILD_ACTION = 134,
CHILD_GET_REF = 135,
WILDCARD = 136,
TYPED_VALUE = 137,
TYPE_EXPRESSION = 138,
TEXT = 139,
INT_8 = 140,
INT_16 = 141,
INT_32 = 142,
INT_64 = 143,
INT_128 = 144,
INT_BIG = 145,
UINT_8 = 146,
UINT_16 = 147,
UINT_32 = 148,
UINT_64 = 149,
UINT_128 = 150,
DECIMAL_F32 = 151,
DECIMAL_F64 = 152,
DECIMAL_BIG = 153,
DECIMAL_AS_INT_32 = 154,
DECIMAL_AS_INT_16 = 155,
TRUE = 156,
FALSE = 157,
NULL = 158,
VOID = 159,
BUFFER = 160,
EXECUTION_BLOCK = 161,
QUANTITY = 162,
SHORT_TEXT = 163,
PERSON_ALIAS = 164,
PERSON_ALIAS_WILDCARD = 165,
INSTITUTION_ALIAS = 166,
INSTITUTION_ALIAS_WILDCARD = 167,
BOT = 168,
BOT_WILDCARD = 169,
ENDPOINT = 170,
ENDPOINT_WILDCARD = 171,
URL = 172,
TIME = 173,
LIST_START = 174,
MAP_START = 175,
STRUCT_START = 176,
KEY_VALUE_SHORT_TEXT = 177,
KEY_VALUE_DYNAMIC = 178,
KEY_PERMISSION = 179,
INTERNAL_OBJECT_SLOT = 180,
SYNC = 181,
STOP_SYNC = 182,
STREAM = 183,
STOP_STREAM = 184,
EXTEND = 185,
YEET = 186,
REMOTE_EXECUTION = 187,
_SYNC_SILENT = 188,
}Variants§
EXIT = 0
CLOSE_AND_STORE = 1
SCOPE_START = 2
SCOPE_END = 3
CACHE_POINT = 4
CACHE_RESET = 5
VAR_RESULT = 6
SET_VAR_RESULT = 7
SET_VAR_RESULT_REFERENCE = 8
VAR_RESULT_ACTION = 9
VAR_SUB_RESULT = 10
SET_VAR_SUB_RESULT = 11
SET_VAR_SUB_RESULT_REFERENCE = 12
VAR_SUB_RESULT_ACTION = 13
VAR_VOID = 14
SET_VAR_VOID = 15
SET_VAR_VOID_REFERENCE = 16
VAR_VOID_ACTION = 17
_VAR_ORIGIN = 18
_SET_VAR_ORIGIN = 19
_SET_VAR_ORIGIN_REFERENCE = 20
_VAR_ORIGIN_ACTION = 21
VAR_IT = 22
SET_VAR_IT = 23
SET_VAR_IT_REFERENCE = 24
VAR_IT_ACTION = 25
VAR_REMOTE = 26
VAR_REMOTE_ACTION = 27
VAR_ORIGIN = 28
VAR_ENDPOINT = 29
VAR_ENTRYPOINT = 30
VAR_STD = 31
VAR_META = 32
VAR_PUBLIC = 33
VAR_THIS = 34
VAR_LOCATION = 35
VAR_ENV = 36
APPLY_ZERO = 37
APPLY_SINGLE = 38
APPLY = 39
RETURN = 40
TEMPLATE = 41
EXTENDS = 42
IMPLEMENTS = 43
MATCHES = 44
DEBUGGER = 45
JMP = 46
JTR = 47
JFA = 48
COUNT = 49
ABOUT = 50
NEW = 51
DELETE_POINTER = 52
COPY = 53
CLONE = 54
ORIGIN = 55
SUBSCRIBERS = 56
PLAIN_SCOPE = 57
TRANSFORM = 58
OBSERVE = 59
RUN = 60
AWAIT = 61
DEFER = 62
FUNCTION = 63
ASSERT = 64
ITERATOR = 65
NEXT = 66
FREEZE = 67
SEAL = 68
HAS = 69
KEYS = 70
GET_TYPE = 71
GET = 72
RANGE = 73
RESOLVE_RELATIVE_PATH = 74
DO = 75
DEFAULT = 76
COLLAPSE = 77
RESPONSE = 78
CLONE_COLLAPSE = 79
STRUCTURAL_EQUAL = 80
NOT_STRUCTURAL_EQUAL = 81
EQUAL = 82
NOT_EQUAL = 83
GREATER = 84
LESS = 85
GREATER_EQUAL = 86
LESS_EQUAL = 87
IS = 88
AND = 89
OR = 90
ADD = 91
SUBTRACT = 92
MULTIPLY = 93
DIVIDE = 94
NOT = 95
MODULO = 96
POWER = 97
INCREMENT = 98
DECREMENT = 99
UNARY_PLUS = 100
UNARY_MINUS = 101
BITWISE_NOT = 102
UNION = 103
ASSIGN = 104
ADD_ASSIGN = 105
SUBTRACT_ASSIGN = 106
MULTIPLY_ASSIGN = 107
DIVIDE_ASSIGN = 108
MODULO_ASSIGN = 109
POWER_ASSIGN = 110
GET_SLOT = 111
SET_SLOT = 112
ALLOCATE_SLOT = 113
SLOT_ACTION = 114
DROP_SLOT = 115
LABEL = 116
SET_LABEL = 117
INIT_LABEL = 118
LABEL_ACTION = 119
GET_REF = 120
GET_INTERNAL_REF = 121
GET_LOCAL_REF = 122
GET_OR_INIT_REF = 123
POINTER_ACTION = 124
CREATE_REF = 125
CREATE_REF_MUT = 126
CREATE_REF_FINAL = 127
SET_REF = 128
ASSIGN_TO_REF = 129
DEREF = 130
CHILD_GET = 131
CHILD_SET = 132
CHILD_SET_REFERENCE = 133
CHILD_ACTION = 134
CHILD_GET_REF = 135
WILDCARD = 136
TYPED_VALUE = 137
type byte codes –> switch to Type Space
TYPE_EXPRESSION = 138
TEXT = 139
INT_8 = 140
INT_16 = 141
INT_32 = 142
INT_64 = 143
INT_128 = 144
INT_BIG = 145
UINT_8 = 146
UINT_16 = 147
UINT_32 = 148
UINT_64 = 149
UINT_128 = 150
DECIMAL_F32 = 151
DECIMAL_F64 = 152
DECIMAL_BIG = 153
DECIMAL_AS_INT_32 = 154
DECIMAL_AS_INT_16 = 155
TRUE = 156
FALSE = 157
NULL = 158
VOID = 159
BUFFER = 160
EXECUTION_BLOCK = 161
QUANTITY = 162
SHORT_TEXT = 163
PERSON_ALIAS = 164
PERSON_ALIAS_WILDCARD = 165
INSTITUTION_ALIAS = 166
INSTITUTION_ALIAS_WILDCARD = 167
BOT = 168
BOT_WILDCARD = 169
ENDPOINT = 170
ENDPOINT_WILDCARD = 171
URL = 172
TIME = 173
LIST_START = 174
MAP_START = 175
STRUCT_START = 176
KEY_VALUE_SHORT_TEXT = 177
KEY_VALUE_DYNAMIC = 178
KEY_PERMISSION = 179
INTERNAL_OBJECT_SLOT = 180
SYNC = 181
STOP_SYNC = 182
STREAM = 183
STOP_STREAM = 184
EXTEND = 185
YEET = 186
REMOTE_EXECUTION = 187
_SYNC_SILENT = 188
Trait Implementations§
Source§impl Clone for InstructionCode
impl Clone for InstructionCode
Source§fn clone(&self) -> InstructionCode
fn clone(&self) -> InstructionCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InstructionCode
impl Debug for InstructionCode
Source§impl Display for InstructionCode
impl Display for InstructionCode
Source§impl From<&ArithmeticOperator> for InstructionCode
impl From<&ArithmeticOperator> for InstructionCode
Source§fn from(op: &ArithmeticOperator) -> Self
fn from(op: &ArithmeticOperator) -> Self
Source§impl From<&ArithmeticUnaryOperator> for InstructionCode
impl From<&ArithmeticUnaryOperator> for InstructionCode
Source§fn from(op: &ArithmeticUnaryOperator) -> Self
fn from(op: &ArithmeticUnaryOperator) -> Self
Source§impl From<&AssignmentOperator> for InstructionCode
impl From<&AssignmentOperator> for InstructionCode
Source§fn from(op: &AssignmentOperator) -> Self
fn from(op: &AssignmentOperator) -> Self
Source§impl From<&BinaryOperator> for InstructionCode
impl From<&BinaryOperator> for InstructionCode
Source§fn from(op: &BinaryOperator) -> Self
fn from(op: &BinaryOperator) -> Self
Source§impl From<&BitwiseOperator> for InstructionCode
impl From<&BitwiseOperator> for InstructionCode
Source§fn from(op: &BitwiseOperator) -> Self
fn from(op: &BitwiseOperator) -> Self
Source§impl From<&BitwiseUnaryOperator> for InstructionCode
impl From<&BitwiseUnaryOperator> for InstructionCode
Source§fn from(op: &BitwiseUnaryOperator) -> Self
fn from(op: &BitwiseUnaryOperator) -> Self
Source§impl From<&ComparisonOperator> for InstructionCode
impl From<&ComparisonOperator> for InstructionCode
Source§fn from(op: &ComparisonOperator) -> Self
fn from(op: &ComparisonOperator) -> Self
Source§impl From<&InstructionCode> for BinaryOperator
impl From<&InstructionCode> for BinaryOperator
Source§fn from(code: &InstructionCode) -> Self
fn from(code: &InstructionCode) -> Self
Source§impl From<&LogicalOperator> for InstructionCode
impl From<&LogicalOperator> for InstructionCode
Source§fn from(op: &LogicalOperator) -> Self
fn from(op: &LogicalOperator) -> Self
Source§impl From<&LogicalUnaryOperator> for InstructionCode
impl From<&LogicalUnaryOperator> for InstructionCode
Source§fn from(op: &LogicalUnaryOperator) -> Self
fn from(op: &LogicalUnaryOperator) -> Self
Source§impl From<&ReferenceUnaryOperator> for InstructionCode
impl From<&ReferenceUnaryOperator> for InstructionCode
Source§fn from(op: &ReferenceUnaryOperator) -> Self
fn from(op: &ReferenceUnaryOperator) -> Self
Source§impl From<&UnaryOperator> for InstructionCode
impl From<&UnaryOperator> for InstructionCode
Source§fn from(op: &UnaryOperator) -> Self
fn from(op: &UnaryOperator) -> Self
Source§impl From<BinaryOperator> for InstructionCode
impl From<BinaryOperator> for InstructionCode
Source§fn from(op: BinaryOperator) -> Self
fn from(op: BinaryOperator) -> Self
Source§impl From<ComparisonOperator> for InstructionCode
impl From<ComparisonOperator> for InstructionCode
Source§fn from(op: ComparisonOperator) -> Self
fn from(op: ComparisonOperator) -> Self
Source§impl From<InstructionCode> for BinaryOperator
impl From<InstructionCode> for BinaryOperator
Source§fn from(code: InstructionCode) -> Self
fn from(code: InstructionCode) -> Self
Source§impl From<InstructionCode> for u8
impl From<InstructionCode> for u8
Source§fn from(enum_value: InstructionCode) -> Self
fn from(enum_value: InstructionCode) -> Self
Source§impl PartialEq for InstructionCode
impl PartialEq for InstructionCode
Source§impl TryFrom<InstructionCode> for AssignmentOperator
impl TryFrom<InstructionCode> for AssignmentOperator
Source§impl TryFrom<u8> for InstructionCode
impl TryFrom<u8> for InstructionCode
Source§type Error = TryFromPrimitiveError<InstructionCode>
type Error = TryFromPrimitiveError<InstructionCode>
Source§impl TryFromPrimitive for InstructionCode
impl TryFromPrimitive for InstructionCode
const NAME: &'static str = "InstructionCode"
type Primitive = u8
type Error = TryFromPrimitiveError<InstructionCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for InstructionCode
impl Eq for InstructionCode
impl StructuralPartialEq for InstructionCode
Auto Trait Implementations§
impl Freeze for InstructionCode
impl RefUnwindSafe for InstructionCode
impl Send for InstructionCode
impl Sync for InstructionCode
impl Unpin for InstructionCode
impl UnwindSafe for InstructionCode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);