Enum golem_wasm_ast::component::ComponentType
source · pub enum ComponentType {
Defined(ComponentDefinedType),
Func(ComponentFuncType),
Component(ComponentTypeDeclarations),
Instance(InstanceTypeDeclarations),
Resource {
representation: ValType,
destructor: Option<ComponentFuncIdx>,
},
}
Variants§
Defined(ComponentDefinedType)
Func(ComponentFuncType)
Component(ComponentTypeDeclarations)
Instance(InstanceTypeDeclarations)
Resource
Trait Implementations§
source§impl Clone for ComponentType
impl Clone for ComponentType
source§fn clone(&self) -> ComponentType
fn clone(&self) -> ComponentType
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 moresource§impl Debug for ComponentType
impl Debug for ComponentType
source§impl PartialEq for ComponentType
impl PartialEq for ComponentType
source§fn eq(&self, other: &ComponentType) -> bool
fn eq(&self, other: &ComponentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentType
impl Section<ComponentIndexSpace, ComponentSectionType> for ComponentType
fn index_space(&self) -> ComponentIndexSpace
fn section_type(&self) -> ComponentSectionType
source§impl TryFrom<&ComponentType> for ComponentTypeSection
impl TryFrom<&ComponentType> for ComponentTypeSection
source§impl<'a> TryFrom<ComponentType<'a>> for ComponentType
impl<'a> TryFrom<ComponentType<'a>> for ComponentType
impl Eq for ComponentType
impl StructuralPartialEq for ComponentType
Auto Trait Implementations§
impl Freeze for ComponentType
impl RefUnwindSafe for ComponentType
impl Send for ComponentType
impl Sync for ComponentType
impl Unpin for ComponentType
impl UnwindSafe for ComponentType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.