Enum wasmparser::ComponentTypeDef
source · pub enum ComponentTypeDef<'a> {
Module(Box<[ModuleType<'a>]>),
Component(Box<[ComponentType<'a>]>),
Instance(Box<[InstanceType<'a>]>),
Function(ComponentFuncType<'a>),
Value(InterfaceTypeRef),
Interface(InterfaceType<'a>),
}
Expand description
Represents a type defined in a WebAssembly component.
Variants§
Module(Box<[ModuleType<'a>]>)
The type is a module type.
Component(Box<[ComponentType<'a>]>)
The type is a component type.
Instance(Box<[InstanceType<'a>]>)
The type is an instance type.
Function(ComponentFuncType<'a>)
The type is a function type.
Value(InterfaceTypeRef)
The type is for a value type.
Interface(InterfaceType<'a>)
The type is for an interface type.
Trait Implementations§
source§impl<'a> Clone for ComponentTypeDef<'a>
impl<'a> Clone for ComponentTypeDef<'a>
source§fn clone(&self) -> ComponentTypeDef<'a>
fn clone(&self) -> ComponentTypeDef<'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