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§impl PartialOrd for OpcodeVariant
impl PartialOrd for OpcodeVariant
impl 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