Opcode

Enum Opcode 

Source
pub enum Opcode {
Show 141 variants trap, fallthrough, memset, unlikely, jump_indirect, load_imm, load_u8, load_i8, load_u16, load_i16, load_i32, load_u32, load_u64, store_u8, store_u16, store_u32, store_u64, load_imm_and_jump, branch_eq_imm, branch_not_eq_imm, branch_less_unsigned_imm, branch_less_signed_imm, branch_greater_or_equal_unsigned_imm, branch_greater_or_equal_signed_imm, branch_less_or_equal_signed_imm, branch_less_or_equal_unsigned_imm, branch_greater_signed_imm, branch_greater_unsigned_imm, store_imm_indirect_u8, store_imm_indirect_u16, store_imm_indirect_u32, store_imm_indirect_u64, store_indirect_u8, store_indirect_u16, store_indirect_u32, store_indirect_u64, load_indirect_u8, load_indirect_i8, load_indirect_u16, load_indirect_i16, load_indirect_i32, load_indirect_u32, load_indirect_u64, add_imm_32, add_imm_64, and_imm, xor_imm, or_imm, mul_imm_32, mul_imm_64, set_less_than_unsigned_imm, set_less_than_signed_imm, shift_logical_left_imm_32, shift_logical_left_imm_64, shift_logical_right_imm_32, shift_logical_right_imm_64, shift_arithmetic_right_imm_32, shift_arithmetic_right_imm_64, negate_and_add_imm_32, negate_and_add_imm_64, set_greater_than_unsigned_imm, set_greater_than_signed_imm, shift_logical_right_imm_alt_32, shift_logical_right_imm_alt_64, shift_arithmetic_right_imm_alt_32, shift_arithmetic_right_imm_alt_64, shift_logical_left_imm_alt_32, shift_logical_left_imm_alt_64, cmov_if_zero_imm, cmov_if_not_zero_imm, rotate_right_imm_32, rotate_right_imm_alt_32, rotate_right_imm_64, rotate_right_imm_alt_64, branch_eq, branch_not_eq, branch_less_unsigned, branch_less_signed, branch_greater_or_equal_unsigned, branch_greater_or_equal_signed, add_32, add_64, sub_32, sub_64, and, xor, or, mul_32, mul_64, mul_upper_signed_signed, mul_upper_unsigned_unsigned, mul_upper_signed_unsigned, set_less_than_unsigned, set_less_than_signed, shift_logical_left_32, shift_logical_left_64, shift_logical_right_32, shift_logical_right_64, shift_arithmetic_right_32, shift_arithmetic_right_64, div_unsigned_32, div_unsigned_64, div_signed_32, div_signed_64, rem_unsigned_32, rem_unsigned_64, rem_signed_32, rem_signed_64, cmov_if_zero, cmov_if_not_zero, and_inverted, or_inverted, xnor, maximum, maximum_unsigned, minimum, minimum_unsigned, rotate_left_32, rotate_left_64, rotate_right_32, rotate_right_64, jump, ecalli, store_imm_u8, store_imm_u16, store_imm_u32, store_imm_u64, move_reg, sbrk, count_leading_zero_bits_32, count_leading_zero_bits_64, count_trailing_zero_bits_32, count_trailing_zero_bits_64, count_set_bits_32, count_set_bits_64, sign_extend_8, sign_extend_16, zero_extend_16, reverse_byte, load_imm_and_jump_indirect, load_imm64, // some variants omitted
}

Variants§

§

trap

§

fallthrough

§

memset

§

unlikely

§

jump_indirect

§

load_imm

§

load_u8

§

load_i8

§

load_u16

§

load_i16

§

load_i32

§

load_u32

§

load_u64

§

store_u8

§

store_u16

§

store_u32

§

store_u64

§

load_imm_and_jump

§

branch_eq_imm

§

branch_not_eq_imm

§

branch_less_unsigned_imm

§

branch_less_signed_imm

§

branch_greater_or_equal_unsigned_imm

§

branch_greater_or_equal_signed_imm

§

branch_less_or_equal_signed_imm

§

branch_less_or_equal_unsigned_imm

§

branch_greater_signed_imm

§

branch_greater_unsigned_imm

§

store_imm_indirect_u8

§

store_imm_indirect_u16

§

store_imm_indirect_u32

§

store_imm_indirect_u64

§

store_indirect_u8

§

store_indirect_u16

§

store_indirect_u32

§

store_indirect_u64

§

load_indirect_u8

§

load_indirect_i8

§

load_indirect_u16

§

load_indirect_i16

§

load_indirect_i32

§

load_indirect_u32

§

load_indirect_u64

§

add_imm_32

§

add_imm_64

§

and_imm

§

xor_imm

§

or_imm

§

mul_imm_32

§

mul_imm_64

§

set_less_than_unsigned_imm

§

set_less_than_signed_imm

§

shift_logical_left_imm_32

§

shift_logical_left_imm_64

§

shift_logical_right_imm_32

§

shift_logical_right_imm_64

§

shift_arithmetic_right_imm_32

§

shift_arithmetic_right_imm_64

§

negate_and_add_imm_32

§

negate_and_add_imm_64

§

set_greater_than_unsigned_imm

§

set_greater_than_signed_imm

§

shift_logical_right_imm_alt_32

§

shift_logical_right_imm_alt_64

§

shift_arithmetic_right_imm_alt_32

§

shift_arithmetic_right_imm_alt_64

§

shift_logical_left_imm_alt_32

§

shift_logical_left_imm_alt_64

§

cmov_if_zero_imm

§

cmov_if_not_zero_imm

§

rotate_right_imm_32

§

rotate_right_imm_alt_32

§

rotate_right_imm_64

§

rotate_right_imm_alt_64

§

branch_eq

§

branch_not_eq

§

branch_less_unsigned

§

branch_less_signed

§

branch_greater_or_equal_unsigned

§

branch_greater_or_equal_signed

§

add_32

§

add_64

§

sub_32

§

sub_64

§

and

§

xor

§

or

§

mul_32

§

mul_64

§

mul_upper_signed_signed

§

mul_upper_unsigned_unsigned

§

mul_upper_signed_unsigned

§

set_less_than_unsigned

§

set_less_than_signed

§

shift_logical_left_32

§

shift_logical_left_64

§

shift_logical_right_32

§

shift_logical_right_64

§

shift_arithmetic_right_32

§

shift_arithmetic_right_64

§

div_unsigned_32

§

div_unsigned_64

§

div_signed_32

§

div_signed_64

§

rem_unsigned_32

§

rem_unsigned_64

§

rem_signed_32

§

rem_signed_64

§

cmov_if_zero

§

cmov_if_not_zero

§

and_inverted

§

or_inverted

§

xnor

§

maximum

§

maximum_unsigned

§

minimum

§

minimum_unsigned

§

rotate_left_32

§

rotate_left_64

§

rotate_right_32

§

rotate_right_64

§

jump

§

ecalli

§

store_imm_u8

§

store_imm_u16

§

store_imm_u32

§

store_imm_u64

§

move_reg

§

sbrk

§

count_leading_zero_bits_32

§

count_leading_zero_bits_64

§

count_trailing_zero_bits_32

§

count_trailing_zero_bits_64

§

count_set_bits_32

§

count_set_bits_64

§

sign_extend_8

§

sign_extend_16

§

zero_extend_16

§

reverse_byte

§

load_imm_and_jump_indirect

§

load_imm64

Implementations§

Source§

impl Opcode

Source

pub const ALL: &[Opcode]

Source

pub fn name(self) -> &'static str

Source§

impl Opcode

Trait Implementations§

Source§

impl Clone for Opcode

Source§

fn clone(&self) -> Opcode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Opcode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Opcode

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromStr for Opcode

Source§

type Err = &'static str

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for Opcode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Opcode

Source§

fn cmp(&self, other: &Opcode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Opcode

Source§

fn eq(&self, other: &Opcode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Opcode

Source§

fn partial_cmp(&self, other: &Opcode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for Opcode

Source§

impl Eq for Opcode

Source§

impl StructuralPartialEq for Opcode

Auto Trait Implementations§

§

impl Freeze for Opcode

§

impl RefUnwindSafe for Opcode

§

impl Send for Opcode

§

impl Sync for Opcode

§

impl Unpin for Opcode

§

impl UnwindSafe for Opcode

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.