Enum wasmparser::component_types::AnyTypeId
source · pub enum AnyTypeId {
Core(ComponentCoreTypeId),
Component(ComponentAnyTypeId),
}
Expand description
An identifier pointing to any kind of type, component or core.
Variants§
Implementations§
source§impl AnyTypeId
impl AnyTypeId
sourcepub fn unwrap_component_core_type(self) -> ComponentCoreTypeId
pub fn unwrap_component_core_type(self) -> ComponentCoreTypeId
Unwrap a ComponentCoreTypeId
or panic.
sourcepub fn unwrap_component_any_type(self) -> ComponentAnyTypeId
pub fn unwrap_component_any_type(self) -> ComponentAnyTypeId
Unwrap a ComponentAnyTypeId
or panic.
source§impl AnyTypeId
impl AnyTypeId
sourcepub fn unwrap_core_type(self) -> CoreTypeId
pub fn unwrap_core_type(self) -> CoreTypeId
Unwrap a CoreTypeId
or panic.
source§impl AnyTypeId
impl AnyTypeId
sourcepub fn unwrap_component_core_module_type(self) -> ComponentCoreModuleTypeId
pub fn unwrap_component_core_module_type(self) -> ComponentCoreModuleTypeId
Unwrap a ComponentCoreModuleTypeId
or panic.
source§impl AnyTypeId
impl AnyTypeId
sourcepub fn unwrap_aliasable_resource(self) -> AliasableResourceId
pub fn unwrap_aliasable_resource(self) -> AliasableResourceId
Unwrap a AliasableResourceId
or panic.
source§impl AnyTypeId
impl AnyTypeId
sourcepub fn unwrap_component_defined_type(self) -> ComponentDefinedTypeId
pub fn unwrap_component_defined_type(self) -> ComponentDefinedTypeId
Unwrap a ComponentDefinedTypeId
or panic.
source§impl AnyTypeId
impl AnyTypeId
sourcepub fn unwrap_component_func_type(self) -> ComponentFuncTypeId
pub fn unwrap_component_func_type(self) -> ComponentFuncTypeId
Unwrap a ComponentFuncTypeId
or panic.
source§impl AnyTypeId
impl AnyTypeId
sourcepub fn unwrap_component_instance_type(self) -> ComponentInstanceTypeId
pub fn unwrap_component_instance_type(self) -> ComponentInstanceTypeId
Unwrap a ComponentInstanceTypeId
or panic.
source§impl AnyTypeId
impl AnyTypeId
sourcepub fn unwrap_component_type(self) -> ComponentTypeId
pub fn unwrap_component_type(self) -> ComponentTypeId
Unwrap a ComponentTypeId
or panic.
Trait Implementations§
source§impl From<AliasableResourceId> for AnyTypeId
impl From<AliasableResourceId> for AnyTypeId
source§fn from(x: AliasableResourceId) -> Self
fn from(x: AliasableResourceId) -> Self
Converts to this type from the input type.
source§impl From<ComponentAnyTypeId> for AnyTypeId
impl From<ComponentAnyTypeId> for AnyTypeId
source§fn from(x: ComponentAnyTypeId) -> Self
fn from(x: ComponentAnyTypeId) -> Self
Converts to this type from the input type.
source§impl From<ComponentCoreModuleTypeId> for AnyTypeId
impl From<ComponentCoreModuleTypeId> for AnyTypeId
source§fn from(x: ComponentCoreModuleTypeId) -> Self
fn from(x: ComponentCoreModuleTypeId) -> Self
Converts to this type from the input type.
source§impl From<ComponentCoreTypeId> for AnyTypeId
impl From<ComponentCoreTypeId> for AnyTypeId
source§fn from(x: ComponentCoreTypeId) -> Self
fn from(x: ComponentCoreTypeId) -> Self
Converts to this type from the input type.
source§impl From<ComponentDefinedTypeId> for AnyTypeId
impl From<ComponentDefinedTypeId> for AnyTypeId
source§fn from(x: ComponentDefinedTypeId) -> Self
fn from(x: ComponentDefinedTypeId) -> Self
Converts to this type from the input type.
source§impl From<ComponentFuncTypeId> for AnyTypeId
impl From<ComponentFuncTypeId> for AnyTypeId
source§fn from(x: ComponentFuncTypeId) -> Self
fn from(x: ComponentFuncTypeId) -> Self
Converts to this type from the input type.
source§impl From<ComponentInstanceTypeId> for AnyTypeId
impl From<ComponentInstanceTypeId> for AnyTypeId
source§fn from(x: ComponentInstanceTypeId) -> Self
fn from(x: ComponentInstanceTypeId) -> Self
Converts to this type from the input type.
source§impl From<ComponentTypeId> for AnyTypeId
impl From<ComponentTypeId> for AnyTypeId
source§fn from(x: ComponentTypeId) -> Self
fn from(x: ComponentTypeId) -> Self
Converts to this type from the input type.
source§impl From<CoreTypeId> for AnyTypeId
impl From<CoreTypeId> for AnyTypeId
source§fn from(x: CoreTypeId) -> Self
fn from(x: CoreTypeId) -> Self
Converts to this type from the input type.
source§impl Ord for AnyTypeId
impl Ord for AnyTypeId
source§impl PartialOrd for AnyTypeId
impl PartialOrd for AnyTypeId
source§impl TryFrom<AnyTypeId> for AliasableResourceId
impl TryFrom<AnyTypeId> for AliasableResourceId
source§impl TryFrom<AnyTypeId> for ComponentAnyTypeId
impl TryFrom<AnyTypeId> for ComponentAnyTypeId
source§impl TryFrom<AnyTypeId> for ComponentCoreModuleTypeId
impl TryFrom<AnyTypeId> for ComponentCoreModuleTypeId
source§impl TryFrom<AnyTypeId> for ComponentCoreTypeId
impl TryFrom<AnyTypeId> for ComponentCoreTypeId
source§impl TryFrom<AnyTypeId> for ComponentDefinedTypeId
impl TryFrom<AnyTypeId> for ComponentDefinedTypeId
source§impl TryFrom<AnyTypeId> for ComponentFuncTypeId
impl TryFrom<AnyTypeId> for ComponentFuncTypeId
source§impl TryFrom<AnyTypeId> for ComponentInstanceTypeId
impl TryFrom<AnyTypeId> for ComponentInstanceTypeId
source§impl TryFrom<AnyTypeId> for ComponentTypeId
impl TryFrom<AnyTypeId> for ComponentTypeId
source§impl TryFrom<AnyTypeId> for CoreTypeId
impl TryFrom<AnyTypeId> for CoreTypeId
impl Copy for AnyTypeId
impl Eq for AnyTypeId
impl StructuralPartialEq for AnyTypeId
Auto Trait Implementations§
impl Freeze for AnyTypeId
impl RefUnwindSafe for AnyTypeId
impl Send for AnyTypeId
impl Sync for AnyTypeId
impl Unpin for AnyTypeId
impl UnwindSafe for AnyTypeId
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.