pub enum ComponentAnyTypeId {
Resource(AliasableResourceId),
Defined(ComponentDefinedTypeId),
Func(ComponentFuncTypeId),
Instance(ComponentInstanceTypeId),
Component(ComponentTypeId),
}
Expand description
An identifier for any kind of component type.
Variants§
Resource(AliasableResourceId)
The type is a resource with the specified id.
Defined(ComponentDefinedTypeId)
The type is a defined type with the specified id.
Func(ComponentFuncTypeId)
The type is a function type with the specified id.
Instance(ComponentInstanceTypeId)
The type is an instance type with the specified id.
Component(ComponentTypeId)
The type is a component type with the specified id.
Implementations§
source§impl ComponentAnyTypeId
impl ComponentAnyTypeId
sourcepub fn unwrap_resource(self) -> AliasableResourceId
pub fn unwrap_resource(self) -> AliasableResourceId
Unwrap a AliasableResourceId
or panic.
sourcepub fn unwrap_defined(self) -> ComponentDefinedTypeId
pub fn unwrap_defined(self) -> ComponentDefinedTypeId
Unwrap a ComponentDefinedTypeId
or panic.
sourcepub fn unwrap_func(self) -> ComponentFuncTypeId
pub fn unwrap_func(self) -> ComponentFuncTypeId
Unwrap a ComponentFuncTypeId
or panic.
sourcepub fn unwrap_instance(self) -> ComponentInstanceTypeId
pub fn unwrap_instance(self) -> ComponentInstanceTypeId
Unwrap a ComponentInstanceTypeId
or panic.
sourcepub fn unwrap_component(self) -> ComponentTypeId
pub fn unwrap_component(self) -> ComponentTypeId
Unwrap a ComponentTypeId
or panic.
Trait Implementations§
source§impl Clone for ComponentAnyTypeId
impl Clone for ComponentAnyTypeId
source§fn clone(&self) -> ComponentAnyTypeId
fn clone(&self) -> ComponentAnyTypeId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ComponentAnyTypeId
impl Debug for ComponentAnyTypeId
source§impl From<AliasableResourceId> for ComponentAnyTypeId
impl From<AliasableResourceId> for ComponentAnyTypeId
source§fn from(x: AliasableResourceId) -> ComponentAnyTypeId
fn from(x: AliasableResourceId) -> ComponentAnyTypeId
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<ComponentDefinedTypeId> for ComponentAnyTypeId
impl From<ComponentDefinedTypeId> for ComponentAnyTypeId
source§fn from(x: ComponentDefinedTypeId) -> ComponentAnyTypeId
fn from(x: ComponentDefinedTypeId) -> ComponentAnyTypeId
Converts to this type from the input type.
source§impl From<ComponentFuncTypeId> for ComponentAnyTypeId
impl From<ComponentFuncTypeId> for ComponentAnyTypeId
source§fn from(x: ComponentFuncTypeId) -> ComponentAnyTypeId
fn from(x: ComponentFuncTypeId) -> ComponentAnyTypeId
Converts to this type from the input type.
source§impl From<ComponentInstanceTypeId> for ComponentAnyTypeId
impl From<ComponentInstanceTypeId> for ComponentAnyTypeId
source§fn from(x: ComponentInstanceTypeId) -> ComponentAnyTypeId
fn from(x: ComponentInstanceTypeId) -> ComponentAnyTypeId
Converts to this type from the input type.
source§impl From<ComponentTypeId> for ComponentAnyTypeId
impl From<ComponentTypeId> for ComponentAnyTypeId
source§fn from(x: ComponentTypeId) -> ComponentAnyTypeId
fn from(x: ComponentTypeId) -> ComponentAnyTypeId
Converts to this type from the input type.
source§impl Hash for ComponentAnyTypeId
impl Hash for ComponentAnyTypeId
source§impl Ord for ComponentAnyTypeId
impl Ord for ComponentAnyTypeId
source§fn cmp(&self, other: &ComponentAnyTypeId) -> Ordering
fn cmp(&self, other: &ComponentAnyTypeId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ComponentAnyTypeId
impl PartialEq for ComponentAnyTypeId
source§impl PartialOrd for ComponentAnyTypeId
impl PartialOrd for ComponentAnyTypeId
source§impl TryFrom<AnyTypeId> for ComponentAnyTypeId
impl TryFrom<AnyTypeId> for ComponentAnyTypeId
source§impl TryFrom<ComponentAnyTypeId> for AliasableResourceId
impl TryFrom<ComponentAnyTypeId> for AliasableResourceId
source§fn try_from(
x: ComponentAnyTypeId,
) -> Result<AliasableResourceId, <AliasableResourceId as TryFrom<ComponentAnyTypeId>>::Error>
fn try_from( x: ComponentAnyTypeId, ) -> Result<AliasableResourceId, <AliasableResourceId as TryFrom<ComponentAnyTypeId>>::Error>
Performs the conversion.
source§impl TryFrom<ComponentAnyTypeId> for ComponentDefinedTypeId
impl TryFrom<ComponentAnyTypeId> for ComponentDefinedTypeId
source§fn try_from(
x: ComponentAnyTypeId,
) -> Result<ComponentDefinedTypeId, <ComponentDefinedTypeId as TryFrom<ComponentAnyTypeId>>::Error>
fn try_from( x: ComponentAnyTypeId, ) -> Result<ComponentDefinedTypeId, <ComponentDefinedTypeId as TryFrom<ComponentAnyTypeId>>::Error>
Performs the conversion.
source§impl TryFrom<ComponentAnyTypeId> for ComponentFuncTypeId
impl TryFrom<ComponentAnyTypeId> for ComponentFuncTypeId
source§fn try_from(
x: ComponentAnyTypeId,
) -> Result<ComponentFuncTypeId, <ComponentFuncTypeId as TryFrom<ComponentAnyTypeId>>::Error>
fn try_from( x: ComponentAnyTypeId, ) -> Result<ComponentFuncTypeId, <ComponentFuncTypeId as TryFrom<ComponentAnyTypeId>>::Error>
Performs the conversion.
source§impl TryFrom<ComponentAnyTypeId> for ComponentInstanceTypeId
impl TryFrom<ComponentAnyTypeId> for ComponentInstanceTypeId
source§fn try_from(
x: ComponentAnyTypeId,
) -> Result<ComponentInstanceTypeId, <ComponentInstanceTypeId as TryFrom<ComponentAnyTypeId>>::Error>
fn try_from( x: ComponentAnyTypeId, ) -> Result<ComponentInstanceTypeId, <ComponentInstanceTypeId as TryFrom<ComponentAnyTypeId>>::Error>
Performs the conversion.
source§impl TryFrom<ComponentAnyTypeId> for ComponentTypeId
impl TryFrom<ComponentAnyTypeId> for ComponentTypeId
source§fn try_from(
x: ComponentAnyTypeId,
) -> Result<ComponentTypeId, <ComponentTypeId as TryFrom<ComponentAnyTypeId>>::Error>
fn try_from( x: ComponentAnyTypeId, ) -> Result<ComponentTypeId, <ComponentTypeId as TryFrom<ComponentAnyTypeId>>::Error>
Performs the conversion.
impl Aliasable for ComponentAnyTypeId
impl Copy for ComponentAnyTypeId
impl Eq for ComponentAnyTypeId
impl StructuralPartialEq for ComponentAnyTypeId
Auto Trait Implementations§
impl Freeze for ComponentAnyTypeId
impl RefUnwindSafe for ComponentAnyTypeId
impl Send for ComponentAnyTypeId
impl Sync for ComponentAnyTypeId
impl Unpin for ComponentAnyTypeId
impl UnwindSafe for ComponentAnyTypeId
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.