Struct cranelift_codegen::ir::entities::GlobalValue [−][src]
pub struct GlobalValue(_);
An opaque reference to a global value.
Methods
impl GlobalValue
[src]
impl GlobalValue
pub 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 GlobalValue
impl Clone for GlobalValue
[src]
impl Clone for GlobalValue
fn clone(&self) -> GlobalValue
[src]
fn clone(&self) -> GlobalValue
Returns 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 GlobalValue
fn eq(&self, other: &GlobalValue) -> bool
[src]
fn eq(&self, other: &GlobalValue) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for GlobalValue
[src]
impl Eq for GlobalValue
impl Hash for GlobalValue
[src]
impl Hash for GlobalValue
fn 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 GlobalValue
fn new(index: usize) -> Self
fn new(index: usize) -> Self
Create 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) -> usize
Get the index that was used to create this entity reference.
impl ReservedValue for GlobalValue
impl ReservedValue for GlobalValue
fn reserved_value() -> GlobalValue
fn reserved_value() -> GlobalValue
Create an instance of the reserved value.
impl Display for GlobalValue
impl Display for GlobalValue
impl Debug for GlobalValue
impl Debug for GlobalValue
impl From<GlobalValue> for AnyEntity
[src]
impl From<GlobalValue> for AnyEntity
fn from(r: GlobalValue) -> Self
[src]
fn from(r: GlobalValue) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for GlobalValue
impl Send for GlobalValue
impl Sync for GlobalValue
impl Sync for GlobalValue