Struct zkevm_opcode_defs::definitions::OpcodeVariant
source · pub struct OpcodeVariant {
pub opcode: Opcode,
pub src0_operand_type: Operand,
pub dst0_operand_type: Operand,
pub flags: [bool; 2],
}
Fields§
§opcode: Opcode
§src0_operand_type: Operand
§dst0_operand_type: Operand
§flags: [bool; 2]
Implementations§
source§impl OpcodeVariant
impl OpcodeVariant
pub fn ergs_price(&self) -> u32
pub const fn swap_operands(&self) -> bool
pub fn requires_kernel_mode(&self) -> bool
pub fn can_be_used_in_static_context(&self) -> bool
pub fn is_explicit_panic(&self) -> bool
Trait Implementations§
source§impl Clone for OpcodeVariant
impl Clone for OpcodeVariant
source§fn clone(&self) -> OpcodeVariant
fn clone(&self) -> OpcodeVariant
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 OpcodeVariant
impl Debug for OpcodeVariant
source§impl Default for OpcodeVariant
impl Default for OpcodeVariant
source§impl Display for OpcodeVariant
impl Display for OpcodeVariant
source§impl Hash for OpcodeVariant
impl Hash for OpcodeVariant
source§impl Ord for OpcodeVariant
impl Ord for OpcodeVariant
source§fn cmp(&self, other: &OpcodeVariant) -> Ordering
fn cmp(&self, other: &OpcodeVariant) -> 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 OpcodeVariant
impl PartialEq for OpcodeVariant
source§fn eq(&self, other: &OpcodeVariant) -> bool
fn eq(&self, other: &OpcodeVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OpcodeVariant
impl PartialOrd for OpcodeVariant
source§fn partial_cmp(&self, other: &OpcodeVariant) -> Option<Ordering>
fn partial_cmp(&self, other: &OpcodeVariant) -> 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 moreimpl Copy for OpcodeVariant
impl Eq for OpcodeVariant
impl StructuralPartialEq for OpcodeVariant
Auto Trait Implementations§
impl Freeze for OpcodeVariant
impl RefUnwindSafe for OpcodeVariant
impl Send for OpcodeVariant
impl Sync for OpcodeVariant
impl Unpin for OpcodeVariant
impl UnwindSafe for OpcodeVariant
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
)