pub struct UserExternalName {
pub namespace: u32,
pub index: u32,
}
Expand description
An external name in a user-defined symbol table.
Cranelift does not interpret these numbers in any way, so they can represent arbitrary values.
Fields§
§namespace: u32
Arbitrary.
index: u32
Arbitrary.
Implementations§
Source§impl UserExternalName
impl UserExternalName
Sourcepub fn new(namespace: u32, index: u32) -> Self
pub fn new(namespace: u32, index: u32) -> Self
Creates a new UserExternalName.
Trait Implementations§
Source§impl Clone for UserExternalName
impl Clone for UserExternalName
Source§fn clone(&self) -> UserExternalName
fn clone(&self) -> UserExternalName
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 UserExternalName
impl Debug for UserExternalName
Source§impl Default for UserExternalName
impl Default for UserExternalName
Source§fn default() -> UserExternalName
fn default() -> UserExternalName
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserExternalName
impl<'de> Deserialize<'de> for UserExternalName
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
Source§impl Display for UserExternalName
impl Display for UserExternalName
Source§impl Hash for UserExternalName
impl Hash for UserExternalName
Source§impl PartialEq for UserExternalName
impl PartialEq for UserExternalName
Source§impl Serialize for UserExternalName
impl Serialize for UserExternalName
impl Eq for UserExternalName
impl StructuralPartialEq for UserExternalName
Auto Trait Implementations§
impl Freeze for UserExternalName
impl RefUnwindSafe for UserExternalName
impl Send for UserExternalName
impl Sync for UserExternalName
impl Unpin for UserExternalName
impl UnwindSafe for UserExternalName
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> 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<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