Enum zkevm_opcode_defs::definitions::binop::BinopOpcode
source · #[repr(u8)]pub enum BinopOpcode {
Xor = 0,
And = 1,
Or = 2,
}
Variants§
Trait Implementations§
source§impl Clone for BinopOpcode
impl Clone for BinopOpcode
source§fn clone(&self) -> BinopOpcode
fn clone(&self) -> BinopOpcode
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 BinopOpcode
impl Debug for BinopOpcode
source§impl Hash for BinopOpcode
impl Hash for BinopOpcode
source§impl OpcodeProps for BinopOpcode
impl OpcodeProps for BinopOpcode
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 BinopOpcode
impl OpcodeVariantProps for BinopOpcode
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 BinopOpcode
impl Ord for BinopOpcode
source§fn cmp(&self, other: &BinopOpcode) -> Ordering
fn cmp(&self, other: &BinopOpcode) -> 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 BinopOpcode
impl PartialEq for BinopOpcode
source§fn eq(&self, other: &BinopOpcode) -> bool
fn eq(&self, other: &BinopOpcode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BinopOpcode
impl PartialOrd for BinopOpcode
source§fn partial_cmp(&self, other: &BinopOpcode) -> Option<Ordering>
fn partial_cmp(&self, other: &BinopOpcode) -> 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 BinopOpcode
impl Eq for BinopOpcode
impl StructuralPartialEq for BinopOpcode
Auto Trait Implementations§
impl Freeze for BinopOpcode
impl RefUnwindSafe for BinopOpcode
impl Send for BinopOpcode
impl Sync for BinopOpcode
impl Unpin for BinopOpcode
impl UnwindSafe for BinopOpcode
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
)