Struct cretonne_codegen::ir::entities::Value [−][src]
pub struct Value(_);
An opaque reference to an SSA value.
Methods
impl Value
[src]
impl Value
pub fn with_number(n: u32) -> Option<Self>
[src]
pub fn with_number(n: u32) -> Option<Self>
Create a value from its number representation.
This is the number in the vNN
notation.
This method is for use by the parser.
Trait Implementations
impl Copy for Value
[src]
impl Copy for Value
impl Clone for Value
[src]
impl Clone for Value
fn clone(&self) -> Value
[src]
fn clone(&self) -> Value
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 PartialEq for Value
[src]
impl PartialEq for Value
fn eq(&self, other: &Value) -> bool
[src]
fn eq(&self, other: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Value) -> bool
[src]
fn ne(&self, other: &Value) -> bool
This method tests for !=
.
impl Eq for Value
[src]
impl Eq for Value
impl Hash for Value
[src]
impl Hash for Value
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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialOrd for Value
[src]
impl PartialOrd for Value
fn partial_cmp(&self, other: &Value) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Value) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Value) -> bool
[src]
fn lt(&self, other: &Value) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Value) -> bool
[src]
fn le(&self, other: &Value) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Value) -> bool
[src]
fn gt(&self, other: &Value) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Value) -> bool
[src]
fn ge(&self, other: &Value) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Value
[src]
impl Ord for Value
fn cmp(&self, other: &Value) -> Ordering
[src]
fn cmp(&self, other: &Value) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl EntityRef for Value
impl EntityRef for Value
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 Value
impl ReservedValue for Value
fn reserved_value() -> Value
fn reserved_value() -> Value
Create an instance of the reserved value.
impl Display for Value
impl Display for Value
impl Debug for Value
impl Debug for Value
impl From<Value> for AnyEntity
[src]
impl From<Value> for AnyEntity