#[repr(u8)]pub enum ContextOpcode {
This = 0,
Caller = 1,
CodeAddress = 2,
Meta = 3,
ErgsLeft = 4,
Sp = 5,
GetContextU128 = 6,
SetContextU128 = 7,
AuxMutating0 = 8,
IncrementTxNumber = 9,
}
Variants§
This = 0
Caller = 1
CodeAddress = 2
Meta = 3
ErgsLeft = 4
Sp = 5
GetContextU128 = 6
SetContextU128 = 7
AuxMutating0 = 8
IncrementTxNumber = 9
Trait Implementations§
Source§impl Clone for ContextOpcode
impl Clone for ContextOpcode
Source§fn clone(&self) -> ContextOpcode
fn clone(&self) -> ContextOpcode
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 ContextOpcode
impl Debug for ContextOpcode
Source§impl Hash for ContextOpcode
impl Hash for ContextOpcode
Source§impl OpcodeProps for ContextOpcode
impl OpcodeProps for ContextOpcode
fn name(&self) -> &'static str
fn variants_data(&self, version: ISAVersion) -> Vec<OpcodeVariantData>
fn max_variant_idx(&self, _version: ISAVersion) -> usize
fn input_operands(&self, _version: ISAVersion) -> Vec<Operand>
fn output_operands(&self, _version: ISAVersion) -> Vec<Operand>
fn requires_kernel_mode(&self) -> bool
fn can_be_used_in_static_context(&self) -> bool
fn src0_can_be_pointer(&self) -> bool
fn src1_can_be_pointer(&self) -> bool
fn can_have_src0_from_mem(&self, version: ISAVersion) -> bool
fn can_write_dst0_into_memory(&self, version: ISAVersion) -> bool
Source§impl OpcodeVariantProps for ContextOpcode
impl OpcodeVariantProps for ContextOpcode
fn all_variants() -> Vec<Self>
fn max_variant_idx_for_version(_version: ISAVersion) -> usize
fn minimal_version(&self) -> ISAVersion
fn variant_index(&self) -> usize
fn from_variant_index_for_version( index: usize, _version: &ISAVersion, ) -> Option<Self>
fn ergs_price(&self) -> u32
fn is_available_for_version(&self, version: ISAVersion) -> bool
fn is_added_in_version(&self, version: ISAVersion) -> bool
fn variants_for_version(version: ISAVersion) -> Vec<Self>
fn variants_added_in_version(version: ISAVersion) -> Vec<Self>
Source§impl Ord for ContextOpcode
impl Ord for ContextOpcode
Source§fn cmp(&self, other: &ContextOpcode) -> Ordering
fn cmp(&self, other: &ContextOpcode) -> 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 for ContextOpcode
impl PartialEq for ContextOpcode
Source§impl PartialOrd for ContextOpcode
impl PartialOrd for ContextOpcode
impl Copy for ContextOpcode
impl Eq for ContextOpcode
impl StructuralPartialEq for ContextOpcode
Auto Trait Implementations§
impl Freeze for ContextOpcode
impl RefUnwindSafe for ContextOpcode
impl Send for ContextOpcode
impl Sync for ContextOpcode
impl Unpin for ContextOpcode
impl UnwindSafe for ContextOpcode
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