pub enum ConstInstruction {
Show 14 variants
I32Const(i32),
I64Const(i64),
F32Const(f32),
F64Const(f64),
V128Const(i128),
GlobalGet(GlobalAddr),
RefFunc(Option<FuncAddr>),
RefExtern(Option<ExternAddr>),
I32Add,
I32Sub,
I32Mul,
I64Add,
I64Sub,
I64Mul,
}Variants§
I32Const(i32)
I64Const(i64)
F32Const(f32)
F64Const(f64)
V128Const(i128)
GlobalGet(GlobalAddr)
RefFunc(Option<FuncAddr>)
RefExtern(Option<ExternAddr>)
I32Add
I32Sub
I32Mul
I64Add
I64Sub
I64Mul
Trait Implementations§
Source§impl Clone for ConstInstruction
impl Clone for ConstInstruction
Source§fn clone(&self) -> ConstInstruction
fn clone(&self) -> ConstInstruction
Returns a duplicate 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 ConstInstruction
impl Debug for ConstInstruction
Source§impl<'de> Deserialize<'de> for ConstInstruction
impl<'de> Deserialize<'de> for ConstInstruction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConstInstruction
impl PartialEq for ConstInstruction
Source§impl Serialize for ConstInstruction
impl Serialize for ConstInstruction
impl Copy for ConstInstruction
impl StructuralPartialEq for ConstInstruction
Auto Trait Implementations§
impl Freeze for ConstInstruction
impl RefUnwindSafe for ConstInstruction
impl Send for ConstInstruction
impl Sync for ConstInstruction
impl Unpin for ConstInstruction
impl UnsafeUnpin for ConstInstruction
impl UnwindSafe for ConstInstruction
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