Struct cranelift::prelude::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<GlobalValue>
[src]
pub fn with_number(n: u32) -> Option<GlobalValue>
Create a new global value reference from its number.
This method is for use by the parser.
Trait Implementations
impl Hash for GlobalValue
[src]
impl Hash for GlobalValue
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
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,
Feeds a slice of this type into the given [Hasher
]. Read more
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)
Performs copy-assignment from source
. Read more
impl Debug for GlobalValue
impl Debug for GlobalValue
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl ReservedValue for GlobalValue
impl ReservedValue for GlobalValue
fn reserved_value() -> GlobalValue
fn reserved_value() -> GlobalValue
Create an instance of the reserved value.
impl From<GlobalValue> for AnyEntity
[src]
impl From<GlobalValue> for AnyEntity
fn from(r: GlobalValue) -> AnyEntity
[src]
fn from(r: GlobalValue) -> AnyEntity
Performs the conversion.
impl EntityRef for GlobalValue
impl EntityRef for GlobalValue
fn new(index: usize) -> GlobalValue
fn new(index: usize) -> GlobalValue
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 Display for GlobalValue
impl Display for GlobalValue
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for GlobalValue
[src]
impl Copy for GlobalValue
impl Eq for GlobalValue
[src]
impl Eq for GlobalValue
impl PartialEq<GlobalValue> for GlobalValue
[src]
impl PartialEq<GlobalValue> 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 !=
.
Auto Trait Implementations
impl Send for GlobalValue
impl Send for GlobalValue
impl Sync for GlobalValue
impl Sync for GlobalValue