pub enum RegConstInstr {
}Expand description
An instruction in a lowered constant expression (global initializers, data segment offsets). Supports the const instrs plus the extended-const integer arithmetic the validator accepts.
Variants§
I32Const(i32)
I64Const(i64)
F32Const(u32)
F64Const(u64)
GlobalGet(GlobalIdx)
RefNull
RefFunc(FuncIdx)
I32Add
I32Sub
I32Mul
I64Add
I64Sub
I64Mul
Trait Implementations§
Source§impl Clone for RegConstInstr
impl Clone for RegConstInstr
Source§fn clone(&self) -> RegConstInstr
fn clone(&self) -> RegConstInstr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RegConstInstr
Source§impl Debug for RegConstInstr
impl Debug for RegConstInstr
impl Eq for RegConstInstr
Source§impl PartialEq for RegConstInstr
impl PartialEq for RegConstInstr
impl StructuralPartialEq for RegConstInstr
Auto Trait Implementations§
impl Freeze for RegConstInstr
impl RefUnwindSafe for RegConstInstr
impl Send for RegConstInstr
impl Sync for RegConstInstr
impl Unpin for RegConstInstr
impl UnsafeUnpin for RegConstInstr
impl UnwindSafe for RegConstInstr
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