Struct wasmparser::component_types::AliasableResourceId
source · pub struct AliasableResourceId { /* private fields */ }
Expand description
An aliasable resource identifier.
Implementations§
source§impl AliasableResourceId
impl AliasableResourceId
sourcepub fn with_resource_id(&self, id: ResourceId) -> Self
pub fn with_resource_id(&self, id: ResourceId) -> Self
Create a new instance with the specified resource ID and self
’s alias
ID.
sourcepub fn resource(&self) -> ResourceId
pub fn resource(&self) -> ResourceId
Get the underlying resource.
Trait Implementations§
source§impl Clone for AliasableResourceId
impl Clone for AliasableResourceId
source§fn clone(&self) -> AliasableResourceId
fn clone(&self) -> AliasableResourceId
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 AliasableResourceId
impl Debug for AliasableResourceId
source§impl From<AliasableResourceId> for AnyTypeId
impl From<AliasableResourceId> for AnyTypeId
source§fn from(x: AliasableResourceId) -> Self
fn from(x: AliasableResourceId) -> Self
Converts to this type from the input type.
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 Hash for AliasableResourceId
impl Hash for AliasableResourceId
source§impl Ord for AliasableResourceId
impl Ord for AliasableResourceId
source§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
source§impl PartialEq for AliasableResourceId
impl PartialEq for AliasableResourceId
source§impl PartialOrd for AliasableResourceId
impl PartialOrd for AliasableResourceId
source§impl TryFrom<AnyTypeId> for AliasableResourceId
impl TryFrom<AnyTypeId> for AliasableResourceId
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,
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.