Instr

Enum Instr 

Source
pub enum Instr {
Show 189 variants unreachable, nop, call(MutableValue<u32>), call_indirect(u32, u32), drop, select, local_get(u32), local_set(u32), local_tee(u32), global_get(u32), global_set(u32), table_get(u32), table_set(u32), i32_load(MutableValue<u32>, u32), i64_load(MutableValue<u32>, u32), f32_load(MutableValue<u32>, u32), f64_load(MutableValue<u32>, u32), i32_load8_s(MutableValue<u32>, u32), i32_load8_u(MutableValue<u32>, u32), i32_load16_s(MutableValue<u32>, u32), i32_load16_u(MutableValue<u32>, u32), i64_load8_s(MutableValue<u32>, u32), i64_load8_u(MutableValue<u32>, u32), i64_load16_s(MutableValue<u32>, u32), i64_load16_u(MutableValue<u32>, u32), i64_load32_s(MutableValue<u32>, u32), i64_load32_u(MutableValue<u32>, u32), i32_store(MutableValue<u32>, u32), i64_store(MutableValue<u32>, u32), f32_store(MutableValue<u32>, u32), f64_store(MutableValue<u32>, u32), i32_store8(MutableValue<u32>, u32), i32_store16(MutableValue<u32>, u32), i64_store8(MutableValue<u32>, u32), i64_store16(MutableValue<u32>, u32), i64_store32(MutableValue<u32>, u32), memory_size(u8), memory_grow(u8), memory_copy(u8, u8), memory_fill(u8), br(u32), br_if(u32), br_table(Vec<u32>, u32), else_end, end, Return, Block(BlockType, MutableValue<Vec<Value<Instr>>>), Loop(BlockType, MutableValue<Vec<Value<Instr>>>), If(BlockType, MutableValue<Vec<Value<Instr>>>), i32_const(i64), i64_const(i64), f32_const(f32), f64_const(f64), i32_eqz, i32_eq, i32_ne, i32_lt_s, i32_lt_u, i32_gt_s, i32_gt_u, i32_le_s, i32_le_u, i32_ge_s, i32_ge_u, i64_eqz, i64_eq, i64_ne, i64_lt_s, i64_lt_u, i64_gt_s, i64_gt_u, i64_le_s, i64_le_u, i64_ge_s, i64_ge_u, f32_eq, f32_ne, f32_lt, f32_gt, f32_le, f32_ge, f64_eq, f64_ne, f64_lt, f64_gt, f64_le, f64_ge, i32_clz, i32_ctz, i32_popcnt, i32_add, i32_sub, i32_mul, i32_div_s, i32_div_u, i32_rem_s, i32_rem_u, i32_and, i32_or, i32_xor, i32_shl, i32_shr_s, i32_shr_u, i32_rotl, i32_rotr, i64_clz, i64_ctz, i64_popcnt, i64_add, i64_sub, i64_mul, i64_div_s, i64_div_u, i64_rem_s, i64_rem_u, i64_and, i64_or, i64_xor, i64_shl, i64_shr_s, i64_shr_u, i64_rotl, i64_rotr, f32_abs, f32_neg, f32_ceil, f32_floor, f32_trunc, f32_nearest, f32_sqrt, f32_add, f32_sub, f32_mul, f32_div, f32_min, f32_max, f32_copysign, f64_abs, f64_neg, f64_ceil, f64_floor, f64_trunc, f64_nearest, f64_sqrt, f64_add, f64_sub, f64_mul, f64_div, f64_min, f64_max, f64_copysign, i32_wrap_i64, i32_trunc_f32_s, i32_trunc_f32_u, i32_trunc_f64_s, i32_trunc_f64_u, i32_trunc_sat_f32_s, i32_trunc_sat_f32_u, i32_trunc_sat_f64_s, i32_trunc_sat_f64_u, i64_extend_i32_s, i64_extend_i32_u, i64_trunc_f32_s, i64_trunc_f32_u, i64_trunc_f64_s, i64_trunc_f64_u, i64_trunc_sat_f32_s, i64_trunc_sat_f32_u, i64_trunc_sat_f64_s, i64_trunc_sat_f64_u, f32_convert_i32_s, f32_convert_i32_u, f32_convert_i64_s, f32_convert_i64_u, f32_demote_f64, f64_convert_i32_s, f64_convert_i32_u, f64_convert_i64_s, f64_convert_i64_u, f64_promote_f32, i32_reinterpret_f32, i64_reinterpret_f64, f32_reinterpret_i32, f64_reinterpret_i64, i32_extend8_s, i32_extend16_s, i64_extend8_s, i64_extend16_s, i64_extend32_s,
}

Variants§

§

unreachable

§

nop

§

call(MutableValue<u32>)

§

call_indirect(u32, u32)

§

drop

§

select

§

local_get(u32)

§

local_set(u32)

§

local_tee(u32)

§

global_get(u32)

§

global_set(u32)

§

table_get(u32)

§

table_set(u32)

§

i32_load(MutableValue<u32>, u32)

§

i64_load(MutableValue<u32>, u32)

§

f32_load(MutableValue<u32>, u32)

§

f64_load(MutableValue<u32>, u32)

§

i32_load8_s(MutableValue<u32>, u32)

§

i32_load8_u(MutableValue<u32>, u32)

§

i32_load16_s(MutableValue<u32>, u32)

§

i32_load16_u(MutableValue<u32>, u32)

§

i64_load8_s(MutableValue<u32>, u32)

§

i64_load8_u(MutableValue<u32>, u32)

§

i64_load16_s(MutableValue<u32>, u32)

§

i64_load16_u(MutableValue<u32>, u32)

§

i64_load32_s(MutableValue<u32>, u32)

§

i64_load32_u(MutableValue<u32>, u32)

§

i32_store(MutableValue<u32>, u32)

§

i64_store(MutableValue<u32>, u32)

§

f32_store(MutableValue<u32>, u32)

§

f64_store(MutableValue<u32>, u32)

§

i32_store8(MutableValue<u32>, u32)

§

i32_store16(MutableValue<u32>, u32)

§

i64_store8(MutableValue<u32>, u32)

§

i64_store16(MutableValue<u32>, u32)

§

i64_store32(MutableValue<u32>, u32)

§

memory_size(u8)

§

memory_grow(u8)

§

memory_copy(u8, u8)

§

memory_fill(u8)

§

br(u32)

§

br_if(u32)

§

br_table(Vec<u32>, u32)

§

else_end

§

end

§

Return

§

Block(BlockType, MutableValue<Vec<Value<Instr>>>)

§

Loop(BlockType, MutableValue<Vec<Value<Instr>>>)

§

If(BlockType, MutableValue<Vec<Value<Instr>>>)

§

i32_const(i64)

§

i64_const(i64)

§

f32_const(f32)

§

f64_const(f64)

§

i32_eqz

§

i32_eq

§

i32_ne

§

i32_lt_s

§

i32_lt_u

§

i32_gt_s

§

i32_gt_u

§

i32_le_s

§

i32_le_u

§

i32_ge_s

§

i32_ge_u

§

i64_eqz

§

i64_eq

§

i64_ne

§

i64_lt_s

§

i64_lt_u

§

i64_gt_s

§

i64_gt_u

§

i64_le_s

§

i64_le_u

§

i64_ge_s

§

i64_ge_u

§

f32_eq

§

f32_ne

§

f32_lt

§

f32_gt

§

f32_le

§

f32_ge

§

f64_eq

§

f64_ne

§

f64_lt

§

f64_gt

§

f64_le

§

f64_ge

§

i32_clz

§

i32_ctz

§

i32_popcnt

§

i32_add

§

i32_sub

§

i32_mul

§

i32_div_s

§

i32_div_u

§

i32_rem_s

§

i32_rem_u

§

i32_and

§

i32_or

§

i32_xor

§

i32_shl

§

i32_shr_s

§

i32_shr_u

§

i32_rotl

§

i32_rotr

§

i64_clz

§

i64_ctz

§

i64_popcnt

§

i64_add

§

i64_sub

§

i64_mul

§

i64_div_s

§

i64_div_u

§

i64_rem_s

§

i64_rem_u

§

i64_and

§

i64_or

§

i64_xor

§

i64_shl

§

i64_shr_s

§

i64_shr_u

§

i64_rotl

§

i64_rotr

§

f32_abs

§

f32_neg

§

f32_ceil

§

f32_floor

§

f32_trunc

§

f32_nearest

§

f32_sqrt

§

f32_add

§

f32_sub

§

f32_mul

§

f32_div

§

f32_min

§

f32_max

§

f32_copysign

§

f64_abs

§

f64_neg

§

f64_ceil

§

f64_floor

§

f64_trunc

§

f64_nearest

§

f64_sqrt

§

f64_add

§

f64_sub

§

f64_mul

§

f64_div

§

f64_min

§

f64_max

§

f64_copysign

§

i32_wrap_i64

§

i32_trunc_f32_s

§

i32_trunc_f32_u

§

i32_trunc_f64_s

§

i32_trunc_f64_u

§

i32_trunc_sat_f32_s

§

i32_trunc_sat_f32_u

§

i32_trunc_sat_f64_s

§

i32_trunc_sat_f64_u

§

i64_extend_i32_s

§

i64_extend_i32_u

§

i64_trunc_f32_s

§

i64_trunc_f32_u

§

i64_trunc_f64_s

§

i64_trunc_f64_u

§

i64_trunc_sat_f32_s

§

i64_trunc_sat_f32_u

§

i64_trunc_sat_f64_s

§

i64_trunc_sat_f64_u

§

f32_convert_i32_s

§

f32_convert_i32_u

§

f32_convert_i64_s

§

f32_convert_i64_u

§

f32_demote_f64

§

f64_convert_i32_s

§

f64_convert_i32_u

§

f64_convert_i64_s

§

f64_convert_i64_u

§

f64_promote_f32

§

i32_reinterpret_f32

§

i64_reinterpret_f64

§

f32_reinterpret_i32

§

f64_reinterpret_i64

§

i32_extend8_s

§

i32_extend16_s

§

i64_extend8_s

§

i64_extend16_s

§

i64_extend32_s

Trait Implementations§

Source§

impl Clone for Instr

Source§

fn clone(&self) -> Instr

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 Instr

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Instr

§

impl RefUnwindSafe for Instr

§

impl Send for Instr

§

impl Sync for Instr

§

impl Unpin for Instr

§

impl UnwindSafe for Instr

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.