Enum erg_common::opcode::CommonOpcode
source · #[repr(u8)]
pub enum CommonOpcode {
Show 48 variants
POP_TOP,
NOP,
UNARY_POSITIVE,
UNARY_NEGATIVE,
UNARY_NOT,
UNARY_INVERT,
BINARY_MATRIX_MULTIPLY,
INPLACE_MATRIX_MULTIPLY,
STORE_SUBSCR,
GET_ITER,
GET_YIELD_FROM_ITER,
PRINT_EXPR,
LOAD_BUILD_CLASS,
RETURN_VALUE,
IMPORT_STAR,
YIELD_VALUE,
POP_BLOCK,
POP_EXCEPT,
STORE_NAME,
DELETE_NAME,
FOR_ITER,
UNPACK_EX,
STORE_ATTR,
STORE_GLOBAL,
LOAD_CONST,
LOAD_NAME,
BUILD_TUPLE,
BUILD_LIST,
BUILD_SET,
BUILD_MAP,
LOAD_ATTR,
COMPARE_OP,
IMPORT_NAME,
IMPORT_FROM,
JUMP_FORWARD,
JUMP_IF_FALSE_OR_POP,
JUMP_IF_TRUE_OR_POP,
LOAD_GLOBAL,
CONTAINS_OP,
LOAD_FAST,
STORE_FAST,
DELETE_FAST,
RAISE_VARARGS,
MAKE_FUNCTION,
CALL_FUNCTION_EX,
EXTENDED_ARG,
LOAD_METHOD,
NOT_IMPLEMENTED,
}
Expand description
Based on Python opcodes. This is represented by u8.
Variants§
POP_TOP
NOP
UNARY_POSITIVE
UNARY_NEGATIVE
UNARY_NOT
UNARY_INVERT
BINARY_MATRIX_MULTIPLY
INPLACE_MATRIX_MULTIPLY
STORE_SUBSCR
GET_ITER
GET_YIELD_FROM_ITER
PRINT_EXPR
LOAD_BUILD_CLASS
RETURN_VALUE
IMPORT_STAR
YIELD_VALUE
POP_BLOCK
POP_EXCEPT
STORE_NAME
DELETE_NAME
FOR_ITER
UNPACK_EX
STORE_ATTR
STORE_GLOBAL
LOAD_CONST
LOAD_NAME
BUILD_TUPLE
BUILD_LIST
BUILD_SET
BUILD_MAP
LOAD_ATTR
COMPARE_OP
IMPORT_NAME
IMPORT_FROM
JUMP_FORWARD
JUMP_IF_FALSE_OR_POP
JUMP_IF_TRUE_OR_POP
LOAD_GLOBAL
CONTAINS_OP
LOAD_FAST
STORE_FAST
DELETE_FAST
RAISE_VARARGS
MAKE_FUNCTION
CALL_FUNCTION_EX
EXTENDED_ARG
LOAD_METHOD
NOT_IMPLEMENTED
Implementations§
Trait Implementations§
source§impl Clone for CommonOpcode
impl Clone for CommonOpcode
source§fn clone(&self) -> CommonOpcode
fn clone(&self) -> CommonOpcode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CommonOpcode
impl Debug for CommonOpcode
source§impl Display for CommonOpcode
impl Display for CommonOpcode
source§impl From<CommonOpcode> for u8
impl From<CommonOpcode> for u8
source§fn from(op: CommonOpcode) -> u8
fn from(op: CommonOpcode) -> u8
Converts to this type from the input type.
source§impl Ord for CommonOpcode
impl Ord for CommonOpcode
source§fn cmp(&self, other: &CommonOpcode) -> Ordering
fn cmp(&self, other: &CommonOpcode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CommonOpcode> for CommonOpcode
impl PartialEq<CommonOpcode> for CommonOpcode
source§fn eq(&self, other: &CommonOpcode) -> bool
fn eq(&self, other: &CommonOpcode) -> bool
source§impl PartialOrd<CommonOpcode> for CommonOpcode
impl PartialOrd<CommonOpcode> for CommonOpcode
source§fn partial_cmp(&self, other: &CommonOpcode) -> Option<Ordering>
fn partial_cmp(&self, other: &CommonOpcode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more