Struct rustc::mir::Location [−][src]
pub struct Location {
pub block: BasicBlock,
pub statement_index: usize,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
block: BasicBlock
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
the location is within this block
statement_index: usize
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
the location is the start of the statement; or, if statement_index
== num-statements, then the start of the terminator.
Methods
impl Location[src]
impl Locationpub const START: Location
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
START: Location = Location{block: START_BLOCK, statement_index: 0,}
pub fn successor_within_block(&self) -> Location[src]
pub fn successor_within_block(&self) -> Location🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns the location immediately after this one within the enclosing block.
Note that if this location represents a terminator, then the resulting location would be out of bounds and invalid.
pub fn dominates(
&self,
other: Location,
dominators: &Dominators<BasicBlock>
) -> bool[src]
pub fn dominates(
&self,
other: Location,
dominators: &Dominators<BasicBlock>
) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for Location[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for Locationfn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Copy for Location[src]
impl Copy for Locationimpl Clone for Location[src]
impl Clone for Locationfn clone(&self) -> Location[src]
fn clone(&self) -> LocationReturns 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 Location[src]
impl PartialEq for Locationfn eq(&self, other: &Location) -> bool[src]
fn eq(&self, other: &Location) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Location) -> bool[src]
fn ne(&self, other: &Location) -> boolThis method tests for !=.
impl Eq for Location[src]
impl Eq for Locationfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl Hash for Location[src]
impl Hash for Locationfn 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 Ord for Location[src]
impl Ord for Locationfn cmp(&self, other: &Location) -> Ordering[src]
fn cmp(&self, other: &Location) -> 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 PartialOrd for Location[src]
impl PartialOrd for Locationfn partial_cmp(&self, other: &Location) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Location) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Location) -> bool[src]
fn lt(&self, other: &Location) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Location) -> bool[src]
fn le(&self, other: &Location) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Location) -> bool[src]
fn gt(&self, other: &Location) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Location) -> bool[src]
fn ge(&self, other: &Location) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Debug for Location[src]
impl Debug for Location