Struct cranelift_codegen::ir::entities::Value [−][src]
pub struct Value(_);
An opaque reference to an SSA value.
Methods
impl Value[src]
impl Valuepub 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 Valueimpl Clone for Value[src]
impl Clone for Valuefn clone(&self) -> Value[src]
fn clone(&self) -> ValueReturns 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 Valuefn eq(&self, other: &Value) -> bool[src]
fn eq(&self, other: &Value) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for Value[src]
impl Eq for Valueimpl Hash for Value[src]
impl Hash for Valuefn 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 Valuefn 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) -> boolThis 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) -> boolThis 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) -> boolThis 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) -> boolThis 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 Valuefn cmp(&self, other: &Value) -> Ordering[src]
fn cmp(&self, other: &Value) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl EntityRef for Value
impl EntityRef for Valuefn 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 Value
impl ReservedValue for Valuefn reserved_value() -> Value
fn reserved_value() -> ValueCreate an instance of the reserved value.
impl Display for Value
impl Display for Valueimpl Debug for Value
impl Debug for Valueimpl From<Value> for AnyEntity[src]
impl From<Value> for AnyEntity