Struct cretonne::prelude::codegen::ir::entities::Inst [−][src]
pub struct Inst(_);
An opaque reference to an instruction in a function.
Trait Implementations
impl IndexMut<Inst> for DataFlowGraph
[src]
impl IndexMut<Inst> for DataFlowGraph
Allow mutable access to instructions via indexing.
fn index_mut(&mut self, inst: Inst) -> &mut InstructionData
[src]
fn index_mut(&mut self, inst: Inst) -> &mut InstructionData
Performs the mutable indexing (container[index]
) operation.
impl PartialOrd<Inst> for Inst
[src]
impl PartialOrd<Inst> for Inst
fn partial_cmp(&self, other: &Inst) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Inst) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Inst) -> bool
[src]
fn lt(&self, other: &Inst) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Inst) -> bool
[src]
fn le(&self, other: &Inst) -> 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: &Inst) -> bool
[src]
fn gt(&self, other: &Inst) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Inst) -> bool
[src]
fn ge(&self, other: &Inst) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for Inst
[src]
impl Hash for Inst
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 Inst
[src]
impl Clone for Inst
fn clone(&self) -> Inst
[src]
fn clone(&self) -> Inst
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 Inst
impl Debug for Inst
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 Ord for Inst
[src]
impl Ord for Inst
fn cmp(&self, other: &Inst) -> Ordering
[src]
fn cmp(&self, other: &Inst) -> 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 ReservedValue for Inst
impl ReservedValue for Inst
fn reserved_value() -> Inst
fn reserved_value() -> Inst
Create an instance of the reserved value.
impl EntityRef for Inst
impl EntityRef for Inst
fn new(index: usize) -> Inst
fn new(index: usize) -> Inst
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 From<Inst> for AnyEntity
[src]
impl From<Inst> for AnyEntity
impl From<Inst> for ProgramPoint
[src]
impl From<Inst> for ProgramPoint
fn from(inst: Inst) -> ProgramPoint
[src]
fn from(inst: Inst) -> ProgramPoint
Performs the conversion.
impl From<Inst> for ExpandedProgramPoint
[src]
impl From<Inst> for ExpandedProgramPoint
fn from(inst: Inst) -> ExpandedProgramPoint
[src]
fn from(inst: Inst) -> ExpandedProgramPoint
Performs the conversion.
impl Index<Inst> for DataFlowGraph
[src]
impl Index<Inst> for DataFlowGraph
Allow immutable access to instructions via indexing.
type Output = InstructionData
The returned type after indexing.
fn index(&self, inst: Inst) -> &InstructionData
[src]
fn index(&self, inst: Inst) -> &InstructionData
Performs the indexing (container[index]
) operation.
impl Display for Inst
impl Display for Inst
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 Inst
[src]
impl Copy for Inst
impl Eq for Inst
[src]
impl Eq for Inst
impl PartialEq<Inst> for Inst
[src]
impl PartialEq<Inst> for Inst