pub enum ComponentTypeDef<'a> {
Module(Box<[ModuleType<'a>], Global>),
Component(Box<[ComponentType<'a>], Global>),
Instance(Box<[InstanceType<'a>], Global>),
Function(ComponentFuncType<'a>),
Value(InterfaceTypeRef),
Interface(InterfaceType<'a>),
}
Expand description
Represents a type defined in a WebAssembly component.
Variants
Module(Box<[ModuleType<'a>], Global>)
The type is a module type.
Component(Box<[ComponentType<'a>], Global>)
The type is a component type.
Instance(Box<[InstanceType<'a>], Global>)
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
sourceimpl<'a> Clone for ComponentTypeDef<'a>
impl<'a> Clone for ComponentTypeDef<'a>
sourcefn clone(&self) -> ComponentTypeDef<'a>
fn clone(&self) -> ComponentTypeDef<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ComponentTypeDef<'a>
impl<'a> Send for ComponentTypeDef<'a>
impl<'a> Sync for ComponentTypeDef<'a>
impl<'a> Unpin for ComponentTypeDef<'a>
impl<'a> UnwindSafe for ComponentTypeDef<'a>
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