Enum wasmtime_environ::wasmparser::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) -> AnyTypeId
fn from(x: AliasableResourceId) -> AnyTypeId
Converts to this type from the input type.
source§impl From<ComponentAnyTypeId> for AnyTypeId
impl From<ComponentAnyTypeId> for AnyTypeId
source§fn from(x: ComponentAnyTypeId) -> AnyTypeId
fn from(x: ComponentAnyTypeId) -> AnyTypeId
Converts to this type from the input type.
source§impl From<ComponentCoreModuleTypeId> for AnyTypeId
impl From<ComponentCoreModuleTypeId> for AnyTypeId
source§fn from(x: ComponentCoreModuleTypeId) -> AnyTypeId
fn from(x: ComponentCoreModuleTypeId) -> AnyTypeId
Converts to this type from the input type.
source§impl From<ComponentCoreTypeId> for AnyTypeId
impl From<ComponentCoreTypeId> for AnyTypeId
source§fn from(x: ComponentCoreTypeId) -> AnyTypeId
fn from(x: ComponentCoreTypeId) -> AnyTypeId
Converts to this type from the input type.
source§impl From<ComponentDefinedTypeId> for AnyTypeId
impl From<ComponentDefinedTypeId> for AnyTypeId
source§fn from(x: ComponentDefinedTypeId) -> AnyTypeId
fn from(x: ComponentDefinedTypeId) -> AnyTypeId
Converts to this type from the input type.
source§impl From<ComponentFuncTypeId> for AnyTypeId
impl From<ComponentFuncTypeId> for AnyTypeId
source§fn from(x: ComponentFuncTypeId) -> AnyTypeId
fn from(x: ComponentFuncTypeId) -> AnyTypeId
Converts to this type from the input type.
source§impl From<ComponentInstanceTypeId> for AnyTypeId
impl From<ComponentInstanceTypeId> for AnyTypeId
source§fn from(x: ComponentInstanceTypeId) -> AnyTypeId
fn from(x: ComponentInstanceTypeId) -> AnyTypeId
Converts to this type from the input type.
source§impl From<ComponentTypeId> for AnyTypeId
impl From<ComponentTypeId> for AnyTypeId
source§fn from(x: ComponentTypeId) -> AnyTypeId
fn from(x: ComponentTypeId) -> AnyTypeId
Converts to this type from the input type.
source§impl From<CoreTypeId> for AnyTypeId
impl From<CoreTypeId> for AnyTypeId
source§fn from(x: CoreTypeId) -> AnyTypeId
fn from(x: CoreTypeId) -> AnyTypeId
Converts to this type from the input type.
source§impl PartialEq for AnyTypeId
impl PartialEq 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<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.