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.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