Enum UnaryOp

pub(crate) enum UnaryOp {
Show 137 variants I32Eqz, I32Clz, I32Ctz, I32Popcnt, I64Eqz, I64Clz, I64Ctz, I64Popcnt, F32Abs, F32Neg, F32Ceil, F32Floor, F32Trunc, F32Nearest, F32Sqrt, F64Abs, F64Neg, F64Ceil, F64Floor, F64Trunc, F64Nearest, F64Sqrt, I32WrapI64, I32TruncSF32, I32TruncUF32, I32TruncSF64, I32TruncUF64, I64ExtendSI32, I64ExtendUI32, I64TruncSF32, I64TruncUF32, I64TruncSF64, I64TruncUF64, F32ConvertSI32, F32ConvertUI32, F32ConvertSI64, F32ConvertUI64, F32DemoteF64, F64ConvertSI32, F64ConvertUI32, F64ConvertSI64, F64ConvertUI64, F64PromoteF32, I32ReinterpretF32, I64ReinterpretF64, F32ReinterpretI32, F64ReinterpretI64, I32Extend8S, I32Extend16S, I64Extend8S, I64Extend16S, I64Extend32S, I8x16Splat, I8x16ExtractLaneS { idx: u8, }, I8x16ExtractLaneU { idx: u8, }, I16x8Splat, I16x8ExtractLaneS { idx: u8, }, I16x8ExtractLaneU { idx: u8, }, I32x4Splat, I32x4ExtractLane { idx: u8, }, I64x2Splat, I64x2ExtractLane { idx: u8, }, F32x4Splat, F32x4ExtractLane { idx: u8, }, F64x2Splat, F64x2ExtractLane { idx: u8, }, V128Not, V128AnyTrue, I8x16Abs, I8x16Popcnt, I8x16Neg, I8x16AllTrue, I8x16Bitmask, I16x8Abs, I16x8Neg, I16x8AllTrue, I16x8Bitmask, I32x4Abs, I32x4Neg, I32x4AllTrue, I32x4Bitmask, I64x2Abs, I64x2Neg, I64x2AllTrue, I64x2Bitmask, F32x4Abs, F32x4Neg, F32x4Sqrt, F32x4Ceil, F32x4Floor, F32x4Trunc, F32x4Nearest, F64x2Abs, F64x2Neg, F64x2Sqrt, F64x2Ceil, F64x2Floor, F64x2Trunc, F64x2Nearest, I16x8ExtAddPairwiseI8x16S, I16x8ExtAddPairwiseI8x16U, I32x4ExtAddPairwiseI16x8S, I32x4ExtAddPairwiseI16x8U, I64x2ExtendLowI32x4S, I64x2ExtendHighI32x4S, I64x2ExtendLowI32x4U, I64x2ExtendHighI32x4U, I32x4TruncSatF64x2SZero, I32x4TruncSatF64x2UZero, F64x2ConvertLowI32x4S, F64x2ConvertLowI32x4U, F32x4DemoteF64x2Zero, F64x2PromoteLowF32x4, I32x4TruncSatF32x4S, I32x4TruncSatF32x4U, F32x4ConvertI32x4S, F32x4ConvertI32x4U, I32TruncSSatF32, I32TruncUSatF32, I32TruncSSatF64, I32TruncUSatF64, I64TruncSSatF32, I64TruncUSatF32, I64TruncSSatF64, I64TruncUSatF64, I16x8WidenLowI8x16S, I16x8WidenLowI8x16U, I16x8WidenHighI8x16S, I16x8WidenHighI8x16U, I32x4WidenLowI16x8S, I32x4WidenLowI16x8U, I32x4WidenHighI16x8S, I32x4WidenHighI16x8U, I32x4RelaxedTruncF32x4S, I32x4RelaxedTruncF32x4U, I32x4RelaxedTruncF64x2SZero, I32x4RelaxedTruncF64x2UZero,
}
Expand description

Possible unary operations in wasm

Variants§

§

I32Eqz

§

I32Clz

§

I32Ctz

§

I32Popcnt

§

I64Eqz

§

I64Clz

§

I64Ctz

§

I64Popcnt

§

F32Abs

§

F32Neg

§

F32Ceil

§

F32Floor

§

F32Trunc

§

F32Nearest

§

F32Sqrt

§

F64Abs

§

F64Neg

§

F64Ceil

§

F64Floor

§

F64Trunc

§

F64Nearest

§

F64Sqrt

§

I32WrapI64

§

I32TruncSF32

§

I32TruncUF32

§

I32TruncSF64

§

I32TruncUF64

§

I64ExtendSI32

§

I64ExtendUI32

§

I64TruncSF32

§

I64TruncUF32

§

I64TruncSF64

§

I64TruncUF64

§

F32ConvertSI32

§

F32ConvertUI32

§

F32ConvertSI64

§

F32ConvertUI64

§

F32DemoteF64

§

F64ConvertSI32

§

F64ConvertUI32

§

F64ConvertSI64

§

F64ConvertUI64

§

F64PromoteF32

§

I32ReinterpretF32

§

I64ReinterpretF64

§

F32ReinterpretI32

§

F64ReinterpretI64

§

I32Extend8S

§

I32Extend16S

§

I64Extend8S

§

I64Extend16S

§

I64Extend32S

§

I8x16Splat

§

I8x16ExtractLaneS

Fields

§idx: u8
§

I8x16ExtractLaneU

Fields

§idx: u8
§

I16x8Splat

§

I16x8ExtractLaneS

Fields

§idx: u8
§

I16x8ExtractLaneU

Fields

§idx: u8
§

I32x4Splat

§

I32x4ExtractLane

Fields

§idx: u8
§

I64x2Splat

§

I64x2ExtractLane

Fields

§idx: u8
§

F32x4Splat

§

F32x4ExtractLane

Fields

§idx: u8
§

F64x2Splat

§

F64x2ExtractLane

Fields

§idx: u8
§

V128Not

§

V128AnyTrue

§

I8x16Abs

§

I8x16Popcnt

§

I8x16Neg

§

I8x16AllTrue

§

I8x16Bitmask

§

I16x8Abs

§

I16x8Neg

§

I16x8AllTrue

§

I16x8Bitmask

§

I32x4Abs

§

I32x4Neg

§

I32x4AllTrue

§

I32x4Bitmask

§

I64x2Abs

§

I64x2Neg

§

I64x2AllTrue

§

I64x2Bitmask

§

F32x4Abs

§

F32x4Neg

§

F32x4Sqrt

§

F32x4Ceil

§

F32x4Floor

§

F32x4Trunc

§

F32x4Nearest

§

F64x2Abs

§

F64x2Neg

§

F64x2Sqrt

§

F64x2Ceil

§

F64x2Floor

§

F64x2Trunc

§

F64x2Nearest

§

I16x8ExtAddPairwiseI8x16S

§

I16x8ExtAddPairwiseI8x16U

§

I32x4ExtAddPairwiseI16x8S

§

I32x4ExtAddPairwiseI16x8U

§

I64x2ExtendLowI32x4S

§

I64x2ExtendHighI32x4S

§

I64x2ExtendLowI32x4U

§

I64x2ExtendHighI32x4U

§

I32x4TruncSatF64x2SZero

§

I32x4TruncSatF64x2UZero

§

F64x2ConvertLowI32x4S

§

F64x2ConvertLowI32x4U

§

F32x4DemoteF64x2Zero

§

F64x2PromoteLowF32x4

§

I32x4TruncSatF32x4S

§

I32x4TruncSatF32x4U

§

F32x4ConvertI32x4S

§

F32x4ConvertI32x4U

§

I32TruncSSatF32

§

I32TruncUSatF32

§

I32TruncSSatF64

§

I32TruncUSatF64

§

I64TruncSSatF32

§

I64TruncUSatF32

§

I64TruncSSatF64

§

I64TruncUSatF64

§

I16x8WidenLowI8x16S

§

I16x8WidenLowI8x16U

§

I16x8WidenHighI8x16S

§

I16x8WidenHighI8x16U

§

I32x4WidenLowI16x8S

§

I32x4WidenLowI16x8U

§

I32x4WidenHighI16x8S

§

I32x4WidenHighI16x8U

§

I32x4RelaxedTruncF32x4S

§

I32x4RelaxedTruncF32x4U

§

I32x4RelaxedTruncF64x2SZero

§

I32x4RelaxedTruncF64x2UZero

Trait Implementations§

§

impl Clone for UnaryOp

§

fn clone(&self) -> UnaryOp

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

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

Performs copy-assignment from source. Read more
§

impl Debug for UnaryOp

§

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

Formats the value using the given formatter. Read more
§

impl Copy for UnaryOp

Auto Trait Implementations§

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.