Struct AliasableResourceId
pub struct AliasableResourceId { /* private fields */ }
Expand description
An aliasable resource identifier.
Implementations§
§impl AliasableResourceId
impl AliasableResourceId
pub fn with_resource_id(&self, id: ResourceId) -> AliasableResourceId
pub fn with_resource_id(&self, id: ResourceId) -> AliasableResourceId
Create a new instance with the specified resource ID and self
’s alias
ID.
pub fn resource(&self) -> ResourceId
pub fn resource(&self) -> ResourceId
Get the underlying resource.
Trait Implementations§
§impl Clone for AliasableResourceId
impl Clone for AliasableResourceId
§fn clone(&self) -> AliasableResourceId
fn clone(&self) -> AliasableResourceId
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 AliasableResourceId
impl Debug for AliasableResourceId
§impl From<AliasableResourceId> for AnyTypeId
impl From<AliasableResourceId> for AnyTypeId
§fn from(x: AliasableResourceId) -> AnyTypeId
fn from(x: AliasableResourceId) -> AnyTypeId
Converts to this type from the input type.
§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 Hash for AliasableResourceId
impl Hash for AliasableResourceId
§impl Ord for AliasableResourceId
impl Ord for AliasableResourceId
§fn cmp(&self, other: &AliasableResourceId) -> Ordering
fn cmp(&self, other: &AliasableResourceId) -> 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 AliasableResourceId
impl PartialEq for AliasableResourceId
§impl PartialOrd for AliasableResourceId
impl PartialOrd for AliasableResourceId
§impl TryFrom<AnyTypeId> for AliasableResourceId
impl TryFrom<AnyTypeId> for AliasableResourceId
§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 Aliasable for AliasableResourceId
impl Copy for AliasableResourceId
impl Eq for AliasableResourceId
impl StructuralPartialEq for AliasableResourceId
Auto Trait Implementations§
impl Freeze for AliasableResourceId
impl RefUnwindSafe for AliasableResourceId
impl Send for AliasableResourceId
impl Sync for AliasableResourceId
impl Unpin for AliasableResourceId
impl UnwindSafe for AliasableResourceId
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