Enum wasmtime_environ::wasmparser::types::AnyTypeId
pub enum AnyTypeId {
Core(ComponentCoreTypeId),
Component(ComponentAnyTypeId),
}
Expand description
An identifier pointing to any kind of type, component or core.
Variants§
Implementations§
§impl AnyTypeId
impl AnyTypeId
pub fn unwrap_component_core_type(self) -> ComponentCoreTypeId
pub fn unwrap_component_core_type(self) -> ComponentCoreTypeId
Unwrap a ComponentCoreTypeId
or panic.
pub fn unwrap_component_any_type(self) -> ComponentAnyTypeId
pub fn unwrap_component_any_type(self) -> ComponentAnyTypeId
Unwrap a ComponentAnyTypeId
or panic.
§impl AnyTypeId
impl AnyTypeId
pub fn unwrap_core_type(self) -> CoreTypeId
pub fn unwrap_core_type(self) -> CoreTypeId
Unwrap a CoreTypeId
or panic.
§impl AnyTypeId
impl AnyTypeId
pub fn unwrap_component_core_module_type(self) -> ComponentCoreModuleTypeId
pub fn unwrap_component_core_module_type(self) -> ComponentCoreModuleTypeId
Unwrap a ComponentCoreModuleTypeId
or panic.
§impl AnyTypeId
impl AnyTypeId
pub fn unwrap_aliasable_resource(self) -> AliasableResourceId
pub fn unwrap_aliasable_resource(self) -> AliasableResourceId
Unwrap a AliasableResourceId
or panic.
§impl AnyTypeId
impl AnyTypeId
pub fn unwrap_component_defined_type(self) -> ComponentDefinedTypeId
pub fn unwrap_component_defined_type(self) -> ComponentDefinedTypeId
Unwrap a ComponentDefinedTypeId
or panic.
§impl AnyTypeId
impl AnyTypeId
pub fn unwrap_component_func_type(self) -> ComponentFuncTypeId
pub fn unwrap_component_func_type(self) -> ComponentFuncTypeId
Unwrap a ComponentFuncTypeId
or panic.
§impl AnyTypeId
impl AnyTypeId
pub fn unwrap_component_instance_type(self) -> ComponentInstanceTypeId
pub fn unwrap_component_instance_type(self) -> ComponentInstanceTypeId
Unwrap a ComponentInstanceTypeId
or panic.
§impl AnyTypeId
impl AnyTypeId
pub fn unwrap_component_type(self) -> ComponentTypeId
pub fn unwrap_component_type(self) -> ComponentTypeId
Unwrap a ComponentTypeId
or panic.
Trait Implementations§
§impl From<AliasableResourceId> for AnyTypeId
impl From<AliasableResourceId> for AnyTypeId
§fn from(x: AliasableResourceId) -> AnyTypeId
fn from(x: AliasableResourceId) -> AnyTypeId
Converts to this type from the input type.
§impl From<ComponentAnyTypeId> for AnyTypeId
impl From<ComponentAnyTypeId> for AnyTypeId
§fn from(x: ComponentAnyTypeId) -> AnyTypeId
fn from(x: ComponentAnyTypeId) -> AnyTypeId
Converts to this type from the input type.
§impl From<ComponentCoreModuleTypeId> for AnyTypeId
impl From<ComponentCoreModuleTypeId> for AnyTypeId
§fn from(x: ComponentCoreModuleTypeId) -> AnyTypeId
fn from(x: ComponentCoreModuleTypeId) -> AnyTypeId
Converts to this type from the input type.
§impl From<ComponentCoreTypeId> for AnyTypeId
impl From<ComponentCoreTypeId> for AnyTypeId
§fn from(x: ComponentCoreTypeId) -> AnyTypeId
fn from(x: ComponentCoreTypeId) -> AnyTypeId
Converts to this type from the input type.
§impl From<ComponentDefinedTypeId> for AnyTypeId
impl From<ComponentDefinedTypeId> for AnyTypeId
§fn from(x: ComponentDefinedTypeId) -> AnyTypeId
fn from(x: ComponentDefinedTypeId) -> AnyTypeId
Converts to this type from the input type.
§impl From<ComponentFuncTypeId> for AnyTypeId
impl From<ComponentFuncTypeId> for AnyTypeId
§fn from(x: ComponentFuncTypeId) -> AnyTypeId
fn from(x: ComponentFuncTypeId) -> AnyTypeId
Converts to this type from the input type.
§impl From<ComponentInstanceTypeId> for AnyTypeId
impl From<ComponentInstanceTypeId> for AnyTypeId
§fn from(x: ComponentInstanceTypeId) -> AnyTypeId
fn from(x: ComponentInstanceTypeId) -> AnyTypeId
Converts to this type from the input type.
§impl From<ComponentTypeId> for AnyTypeId
impl From<ComponentTypeId> for AnyTypeId
§fn from(x: ComponentTypeId) -> AnyTypeId
fn from(x: ComponentTypeId) -> AnyTypeId
Converts to this type from the input type.
§impl From<CoreTypeId> for AnyTypeId
impl From<CoreTypeId> for AnyTypeId
§fn from(x: CoreTypeId) -> AnyTypeId
fn from(x: CoreTypeId) -> AnyTypeId
Converts to this type from the input type.
§impl Ord for AnyTypeId
impl Ord for AnyTypeId
§impl PartialOrd for AnyTypeId
impl PartialOrd for AnyTypeId
§fn partial_cmp(&self, other: &AnyTypeId) -> Option<Ordering>
fn partial_cmp(&self, other: &AnyTypeId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl TryFrom<AnyTypeId> for AliasableResourceId
impl TryFrom<AnyTypeId> for AliasableResourceId
§impl TryFrom<AnyTypeId> for ComponentAnyTypeId
impl TryFrom<AnyTypeId> for ComponentAnyTypeId
§impl TryFrom<AnyTypeId> for ComponentCoreModuleTypeId
impl TryFrom<AnyTypeId> for ComponentCoreModuleTypeId
§impl TryFrom<AnyTypeId> for ComponentCoreTypeId
impl TryFrom<AnyTypeId> for ComponentCoreTypeId
§impl TryFrom<AnyTypeId> for ComponentDefinedTypeId
impl TryFrom<AnyTypeId> for ComponentDefinedTypeId
§impl TryFrom<AnyTypeId> for ComponentFuncTypeId
impl TryFrom<AnyTypeId> for ComponentFuncTypeId
§impl TryFrom<AnyTypeId> for ComponentInstanceTypeId
impl TryFrom<AnyTypeId> for ComponentInstanceTypeId
§impl TryFrom<AnyTypeId> for ComponentTypeId
impl TryFrom<AnyTypeId> for ComponentTypeId
§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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.