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 for UserExternalName
impl PartialEq 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,
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> 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.