Enum zkevm_opcode_defs::definitions::ptr::PtrOpcode
source · #[repr(u8)]pub enum PtrOpcode {
Add = 0,
Sub = 1,
Pack = 2,
Shrink = 3,
}
Variants§
Trait Implementations§
source§impl OpcodeProps for PtrOpcode
impl OpcodeProps for PtrOpcode
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 PtrOpcode
impl OpcodeVariantProps for PtrOpcode
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 PtrOpcode
impl Ord for PtrOpcode
source§impl PartialEq for PtrOpcode
impl PartialEq for PtrOpcode
source§impl PartialOrd for PtrOpcode
impl PartialOrd for PtrOpcode
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 moreimpl Copy for PtrOpcode
impl Eq for PtrOpcode
impl StructuralPartialEq for PtrOpcode
Auto Trait Implementations§
impl Freeze for PtrOpcode
impl RefUnwindSafe for PtrOpcode
impl Send for PtrOpcode
impl Sync for PtrOpcode
impl Unpin for PtrOpcode
impl UnwindSafe for PtrOpcode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)