Enum wasmtime_environ::wasmparser::types::TypeDef
source · [−]pub enum TypeDef {
Func(FuncType),
Module(ModuleType),
ModuleInstance(ModuleInstanceType),
Component(ComponentType),
Instance(InstanceType),
ComponentFunc(ComponentFuncType),
Value(InterfaceTypeRef),
Interface(InterfaceType),
}
Expand description
A unified type definition for inspecting WebAssembly modules and components.
Variants
Func(FuncType)
The definition is for a core function type.
Module(ModuleType)
The definition is for a module type.
This variant is only supported when parsing a component.
ModuleInstance(ModuleInstanceType)
The definition is for a module instance type.
This variant is only supported when parsing a component.
Component(ComponentType)
The definition is for a component type.
This variant is only supported when parsing a component.
Instance(InstanceType)
The definition is for an instance type.
This variant is only supported when parsing a component.
ComponentFunc(ComponentFuncType)
The definition is for a component function type.
This variant is only supported when parsing a component.
Value(InterfaceTypeRef)
The definition is for a value type.
This variant is only supported when parsing a component.
Interface(InterfaceType)
The definition is for an interface type.
This variant is only supported when parsing a component.
Auto Trait Implementations
impl RefUnwindSafe for TypeDef
impl Send for TypeDef
impl Sync for TypeDef
impl Unpin for TypeDef
impl UnwindSafe for TypeDef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more