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) -> 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<ComponentDefinedTypeId> for ComponentAnyTypeId
impl From<ComponentDefinedTypeId> for ComponentAnyTypeId
source§fn from(x: ComponentDefinedTypeId) -> Self
fn from(x: ComponentDefinedTypeId) -> Self
Converts to this type from the input type.
source§impl From<ComponentFuncTypeId> for ComponentAnyTypeId
impl From<ComponentFuncTypeId> for ComponentAnyTypeId
source§fn from(x: ComponentFuncTypeId) -> Self
fn from(x: ComponentFuncTypeId) -> Self
Converts to this type from the input type.
source§impl From<ComponentInstanceTypeId> for ComponentAnyTypeId
impl From<ComponentInstanceTypeId> for ComponentAnyTypeId
source§fn from(x: ComponentInstanceTypeId) -> Self
fn from(x: ComponentInstanceTypeId) -> Self
Converts to this type from the input type.
source§impl From<ComponentTypeId> for ComponentAnyTypeId
impl From<ComponentTypeId> for ComponentAnyTypeId
source§fn from(x: ComponentTypeId) -> Self
fn from(x: ComponentTypeId) -> Self
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 ComponentTypeId
impl TryFrom<ComponentAnyTypeId> for ComponentTypeId
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.