Enum ComponentAnyTypeId
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§
§impl ComponentAnyTypeId
impl ComponentAnyTypeId
pub fn unwrap_resource(self) -> AliasableResourceId
pub fn unwrap_resource(self) -> AliasableResourceId
Unwrap a AliasableResourceId
or panic.
pub fn unwrap_defined(self) -> ComponentDefinedTypeId
pub fn unwrap_defined(self) -> ComponentDefinedTypeId
Unwrap a ComponentDefinedTypeId
or panic.
pub fn unwrap_func(self) -> ComponentFuncTypeId
pub fn unwrap_func(self) -> ComponentFuncTypeId
Unwrap a ComponentFuncTypeId
or panic.
pub fn unwrap_instance(self) -> ComponentInstanceTypeId
pub fn unwrap_instance(self) -> ComponentInstanceTypeId
Unwrap a ComponentInstanceTypeId
or panic.
pub fn unwrap_component(self) -> ComponentTypeId
pub fn unwrap_component(self) -> ComponentTypeId
Unwrap a ComponentTypeId
or panic.
Trait Implementations§
§impl Clone for ComponentAnyTypeId
impl Clone for ComponentAnyTypeId
§fn clone(&self) -> ComponentAnyTypeId
fn clone(&self) -> ComponentAnyTypeId
Returns a duplicate 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 more§impl Debug for ComponentAnyTypeId
impl Debug for ComponentAnyTypeId
§impl From<AliasableResourceId> for ComponentAnyTypeId
impl From<AliasableResourceId> for ComponentAnyTypeId
§fn from(x: AliasableResourceId) -> ComponentAnyTypeId
fn from(x: AliasableResourceId) -> ComponentAnyTypeId
Converts to this type from the input type.
§impl From<ComponentAnyTypeId> for AnyTypeId
impl From<ComponentAnyTypeId> for AnyTypeId
§fn from(x: ComponentAnyTypeId) -> AnyTypeId
fn from(x: ComponentAnyTypeId) -> AnyTypeId
Converts to this type from the input type.
§impl From<ComponentDefinedTypeId> for ComponentAnyTypeId
impl From<ComponentDefinedTypeId> for ComponentAnyTypeId
§fn from(x: ComponentDefinedTypeId) -> ComponentAnyTypeId
fn from(x: ComponentDefinedTypeId) -> ComponentAnyTypeId
Converts to this type from the input type.
§impl From<ComponentFuncTypeId> for ComponentAnyTypeId
impl From<ComponentFuncTypeId> for ComponentAnyTypeId
§fn from(x: ComponentFuncTypeId) -> ComponentAnyTypeId
fn from(x: ComponentFuncTypeId) -> ComponentAnyTypeId
Converts to this type from the input type.
§impl From<ComponentInstanceTypeId> for ComponentAnyTypeId
impl From<ComponentInstanceTypeId> for ComponentAnyTypeId
§fn from(x: ComponentInstanceTypeId) -> ComponentAnyTypeId
fn from(x: ComponentInstanceTypeId) -> ComponentAnyTypeId
Converts to this type from the input type.
§impl From<ComponentTypeId> for ComponentAnyTypeId
impl From<ComponentTypeId> for ComponentAnyTypeId
§fn from(x: ComponentTypeId) -> ComponentAnyTypeId
fn from(x: ComponentTypeId) -> ComponentAnyTypeId
Converts to this type from the input type.
§impl Hash for ComponentAnyTypeId
impl Hash for ComponentAnyTypeId
§impl Ord for ComponentAnyTypeId
impl Ord for ComponentAnyTypeId
§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
§impl PartialEq for ComponentAnyTypeId
impl PartialEq for ComponentAnyTypeId
§impl PartialOrd for ComponentAnyTypeId
impl PartialOrd for ComponentAnyTypeId
§impl TryFrom<AnyTypeId> for ComponentAnyTypeId
impl TryFrom<AnyTypeId> for ComponentAnyTypeId
§impl TryFrom<ComponentAnyTypeId> for AliasableResourceId
impl TryFrom<ComponentAnyTypeId> for AliasableResourceId
§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.
§impl TryFrom<ComponentAnyTypeId> for ComponentDefinedTypeId
impl TryFrom<ComponentAnyTypeId> for ComponentDefinedTypeId
§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.
§impl TryFrom<ComponentAnyTypeId> for ComponentFuncTypeId
impl TryFrom<ComponentAnyTypeId> for ComponentFuncTypeId
§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.
§impl TryFrom<ComponentAnyTypeId> for ComponentInstanceTypeId
impl TryFrom<ComponentAnyTypeId> for ComponentInstanceTypeId
§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.
§impl TryFrom<ComponentAnyTypeId> for ComponentTypeId
impl TryFrom<ComponentAnyTypeId> for ComponentTypeId
§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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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