pub enum ComponentAnyTypeId {
Resource(AliasableResourceId),
Defined(ComponentDefinedTypeId),
Func(ComponentFuncTypeId),
Instance(ComponentInstanceTypeId),
Component(ComponentTypeId),
}
Available on crate features
validate
and component-model
only.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§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.