Struct cranelift_codegen::ir::entities::GlobalValue
source · pub struct GlobalValue(_);Expand description
An opaque reference to a global value.
Implementations§
source§impl GlobalValue
impl GlobalValue
sourcepub fn with_number(n: u32) -> Option<Self>
pub fn with_number(n: u32) -> Option<Self>
Create a new global value reference from its number.
This method is for use by the parser.
Trait Implementations§
source§impl Clone for GlobalValue
impl Clone for GlobalValue
source§fn clone(&self) -> GlobalValue
fn clone(&self) -> GlobalValue
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 GlobalValue
impl Debug for GlobalValue
source§impl Display for GlobalValue
impl Display for GlobalValue
source§impl EntityRef for GlobalValue
impl EntityRef for GlobalValue
source§impl From<GlobalValue> for AnyEntity
impl From<GlobalValue> for AnyEntity
source§fn from(r: GlobalValue) -> Self
fn from(r: GlobalValue) -> Self
Converts to this type from the input type.
source§impl Hash for GlobalValue
impl Hash for GlobalValue
source§impl PartialEq<GlobalValue> for GlobalValue
impl PartialEq<GlobalValue> for GlobalValue
source§fn eq(&self, other: &GlobalValue) -> bool
fn eq(&self, other: &GlobalValue) -> bool
source§impl ReservedValue for GlobalValue
impl ReservedValue for GlobalValue
source§fn reserved_value() -> GlobalValue
fn reserved_value() -> GlobalValue
Create an instance of the reserved value.