pub enum AnyTypeId {
Core(ComponentCoreTypeId),
Component(ComponentAnyTypeId),
}
Available on crate features
validate
and component-model
only.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§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.