Enum cranelift_wasm::wasmparser::InstanceType
source · pub enum InstanceType<'a> {
Type(ComponentTypeDef<'a>),
OuterType {
count: u32,
index: u32,
},
Export {
name: &'a str,
ty: u32,
},
}
Expand description
Represents an instance type definition in a WebAssembly component.
Variants§
Type(ComponentTypeDef<'a>)
The instance type definition is for a type.
OuterType
Fields
The instance type definition is for an alias to an outer type.
Export
The instance type definition is for an export.
Trait Implementations§
source§impl<'a> Clone for InstanceType<'a>
impl<'a> Clone for InstanceType<'a>
source§fn clone(&self) -> InstanceType<'a>
fn clone(&self) -> InstanceType<'a>
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 more