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 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.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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more