Enum binaryen::UnaryOp [−][src]
pub enum UnaryOp { ClzI32, CtzI32, PopcntI32, NegF32, AbsF32, CeilF32, FloorF32, TruncF32, NearestF32, SqrtF32, EqZI32, ClzI64, CtzI64, PopcntI64, NegF64, AbsF64, CeilF64, FloorF64, TruncF64, NearestF64, SqrtF64, EqZI64, ExtendSI32, ExtendUI32, WrapI64, TruncSF32ToI32, TruncSF32ToI64, TruncUF32ToI32, TruncUF32ToI64, TruncSF64ToI32, TruncSF64ToI64, TruncUF64ToI32, TruncUF64ToI64, ReinterpretF32, ReinterpretF64, ConvertSI32ToF32, ConvertSI32ToF64, ConvertUI32ToF32, ConvertUI32ToF64, ConvertSI64ToF32, ConvertSI64ToF64, ConvertUI64ToF32, ConvertUI64ToF64, PromoteF32, DemoteF64, ReinterpretI32, ReinterpretI64, }
Operation that takes a single input operand and returns result.
See:
Module#binary
.- https://webassembly.github.io/spec/appendix/index-instructions.html
Variants
ClzI32
CtzI32
PopcntI32
NegF32
AbsF32
CeilF32
FloorF32
TruncF32
NearestF32
SqrtF32
EqZI32
ClzI64
CtzI64
PopcntI64
NegF64
AbsF64
CeilF64
FloorF64
TruncF64
NearestF64
SqrtF64
EqZI64
ExtendSI32
ExtendUI32
WrapI64
TruncSF32ToI32
TruncSF32ToI64
TruncUF32ToI32
TruncUF32ToI64
TruncSF64ToI32
TruncSF64ToI64
TruncUF64ToI32
TruncUF64ToI64
ReinterpretF32
ReinterpretF64
ConvertSI32ToF32
ConvertSI32ToF64
ConvertUI32ToF32
ConvertUI32ToF64
ConvertSI64ToF32
ConvertSI64ToF64
ConvertUI64ToF32
ConvertUI64ToF64
PromoteF32
DemoteF64
ReinterpretI32
ReinterpretI64
Trait Implementations
impl Debug for UnaryOp
[src]
impl Debug for UnaryOp
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for UnaryOp
[src]
impl Copy for UnaryOp
impl Clone for UnaryOp
[src]
impl Clone for UnaryOp
fn clone(&self) -> UnaryOp
[src]
fn clone(&self) -> UnaryOp
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for UnaryOp
[src]
impl PartialEq for UnaryOp
fn eq(&self, other: &UnaryOp) -> bool
[src]
fn eq(&self, other: &UnaryOp) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for UnaryOp
[src]
impl Eq for UnaryOp
impl From<UnaryOp> for BinaryenOp
[src]
impl From<UnaryOp> for BinaryenOp
fn from(unop: UnaryOp) -> BinaryenOp
[src]
fn from(unop: UnaryOp) -> BinaryenOp
Performs the conversion.