Struct cranelift_codegen::ir::entities::GlobalValue [−][src]
pub struct GlobalValue(_);
An opaque reference to a global value.
Methods
impl GlobalValue[src]
impl GlobalValuepub fn with_number(n: u32) -> Option<Self>[src]
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
impl Copy for GlobalValue[src]
impl Copy for GlobalValueimpl Clone for GlobalValue[src]
impl Clone for GlobalValuefn clone(&self) -> GlobalValue[src]
fn clone(&self) -> GlobalValueReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for GlobalValue[src]
impl PartialEq for GlobalValuefn eq(&self, other: &GlobalValue) -> bool[src]
fn eq(&self, other: &GlobalValue) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &GlobalValue) -> bool[src]
fn ne(&self, other: &GlobalValue) -> boolThis method tests for !=.
impl Eq for GlobalValue[src]
impl Eq for GlobalValueimpl Hash for GlobalValue[src]
impl Hash for GlobalValuefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl EntityRef for GlobalValue
impl EntityRef for GlobalValuefn new(index: usize) -> Self
fn new(index: usize) -> SelfCreate a new entity reference from a small integer. This should crash if the requested index is not representable. Read more
fn index(self) -> usize
fn index(self) -> usizeGet the index that was used to create this entity reference.
impl ReservedValue for GlobalValue
impl ReservedValue for GlobalValuefn reserved_value() -> GlobalValue
fn reserved_value() -> GlobalValueCreate an instance of the reserved value.
impl Display for GlobalValue
impl Display for GlobalValueimpl Debug for GlobalValue
impl Debug for GlobalValueimpl From<GlobalValue> for AnyEntity[src]
impl From<GlobalValue> for AnyEntityfn from(r: GlobalValue) -> Self[src]
fn from(r: GlobalValue) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for GlobalValue
impl Send for GlobalValueimpl Sync for GlobalValue
impl Sync for GlobalValue