#[repr(u8)]pub enum LogOpcode {
StorageRead = 0,
StorageWrite = 1,
ToL1Message = 2,
Event = 3,
PrecompileCall = 4,
Decommit = 5,
TransientStorageRead = 6,
TransientStorageWrite = 7,
}
Variants§
StorageRead = 0
StorageWrite = 1
ToL1Message = 2
Event = 3
PrecompileCall = 4
Decommit = 5
TransientStorageRead = 6
TransientStorageWrite = 7
Trait Implementations§
Source§impl OpcodeProps for LogOpcode
impl OpcodeProps for LogOpcode
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 LogOpcode
impl OpcodeVariantProps for LogOpcode
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 LogOpcode
impl Ord for LogOpcode
Source§impl PartialOrd for LogOpcode
impl PartialOrd for LogOpcode
impl Copy for LogOpcode
impl Eq for LogOpcode
impl StructuralPartialEq for LogOpcode
Auto Trait Implementations§
impl Freeze for LogOpcode
impl RefUnwindSafe for LogOpcode
impl Send for LogOpcode
impl Sync for LogOpcode
impl Unpin for LogOpcode
impl UnwindSafe for LogOpcode
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