Struct cranelift_codegen::ir::UserExternalName
source · 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 Display for UserExternalName
impl Display for UserExternalName
source§impl Hash for UserExternalName
impl Hash for UserExternalName
source§impl PartialEq<UserExternalName> for UserExternalName
impl PartialEq<UserExternalName> for UserExternalName
source§fn eq(&self, other: &UserExternalName) -> bool
fn eq(&self, other: &UserExternalName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UserExternalName
impl StructuralEq for UserExternalName
impl StructuralPartialEq for UserExternalName
Auto Trait Implementations§
impl RefUnwindSafe for UserExternalName
impl Send for UserExternalName
impl Sync for UserExternalName
impl Unpin for UserExternalName
impl UnwindSafe for UserExternalName
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.