pub struct AliasRegionData {
pub user_id: u32,
pub description: Cow<'static, str>,
}Expand description
Data describing an alias region.
Fields§
§user_id: u32A unique, user-defined identifier for this alias region.
Alias regions are deduplicated based on this identifier.
This deduplication happens during inlining, for example, when a callee’s alias regions are merged with the caller’s. Therefore, when inlining is enabled this identifier should be globally unique across the whole compilation. When inlining is disabled, it is sufficient to be unique within the context of a single function.
description: Cow<'static, str>Description of this alias region, e.g. “vmctx”, “funcref table”,
“global 42”, or “gc struct LinkedList field tail”.
This only exists for printing in the CLIF text format.
Trait Implementations§
Source§impl Clone for AliasRegionData
impl Clone for AliasRegionData
Source§fn clone(&self) -> AliasRegionData
fn clone(&self) -> AliasRegionData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AliasRegionData
impl Debug for AliasRegionData
Source§impl<'de> Deserialize<'de> for AliasRegionData
impl<'de> Deserialize<'de> for AliasRegionData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AliasRegionData
Source§impl Hash for AliasRegionData
impl Hash for AliasRegionData
Source§impl PartialEq for AliasRegionData
impl PartialEq for AliasRegionData
Source§fn eq(&self, other: &AliasRegionData) -> bool
fn eq(&self, other: &AliasRegionData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AliasRegionData
impl Serialize for AliasRegionData
impl StructuralPartialEq for AliasRegionData
Auto Trait Implementations§
impl Freeze for AliasRegionData
impl RefUnwindSafe for AliasRegionData
impl Send for AliasRegionData
impl Sync for AliasRegionData
impl Unpin for AliasRegionData
impl UnsafeUnpin for AliasRegionData
impl UnwindSafe for AliasRegionData
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
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.