Enum cranelift_wasm::wasmparser::ModuleType
source · pub enum ModuleType<'a> {
Type(TypeDef),
Export {
name: &'a str,
ty: TypeRef,
},
Import(Import<'a>),
}
Expand description
Represents a module type definition in a WebAssembly component.
Variants§
Type(TypeDef)
The module type definition is for a type.
Export
The module type definition is for an export.
Import(Import<'a>)
The module type definition is for an import.
Trait Implementations§
source§impl<'a> Clone for ModuleType<'a>
impl<'a> Clone for ModuleType<'a>
source§fn clone(&self) -> ModuleType<'a>
fn clone(&self) -> ModuleType<'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