pub enum Instructions {
Value(Value),
Global(GlobalID),
RefNull(RefType),
RefFunc(FunctionID),
StructNew(TypeID),
StructNewDefault(TypeID),
ArrayNew(TypeID),
ArrayNewDefault(TypeID),
RefArrayFixed {
array_type_index: u32,
array_size: u32,
},
RefArrayData {
array_type_index: u32,
array_data_index: u32,
},
RefArrayElem {
array_type_index: u32,
array_elem_index: u32,
},
RefI31,
}
Expand description
Set of instructions that can be used in Initialisatin Expressions
Variants§
Value(Value)
An immediate constant value
Global(GlobalID)
A constant value referenced by the global specified
RefNull(RefType)
A null reference
RefFunc(FunctionID)
A function initializer
StructNew(TypeID)
Struct Initializer
StructNewDefault(TypeID)
Struct Default
ArrayNew(TypeID)
Array Initializer
ArrayNewDefault(TypeID)
Default Initialisation
RefArrayFixed
Fixed Array
RefArrayData
Array from Data
RefArrayElem
Array from Elem
RefI31
Trait Implementations§
Source§impl Clone for Instructions
impl Clone for Instructions
Source§fn clone(&self) -> Instructions
fn clone(&self) -> Instructions
Returns a copy 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 Instructions
impl Debug for Instructions
impl Copy for Instructions
Auto Trait Implementations§
impl Freeze for Instructions
impl RefUnwindSafe for Instructions
impl Send for Instructions
impl Sync for Instructions
impl Unpin for Instructions
impl UnwindSafe for Instructions
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