[−][src]Struct rustc::mir::Location
⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
Fields
block: BasicBlock⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
the location is within this block
statement_index: usize⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
the location is the start of the statement; or, if statement_index
== num-statements, then the start of the terminator.
Methods
impl Location[src]
pub const START: Location[src]
⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
pub fn successor_within_block(&self) -> Location[src]
⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
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 is_predecessor_of<'tcx>(&self, other: Location, mir: &Mir<'tcx>) -> bool[src]
⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
Returns true if other is earlier in the control flow graph than self.
pub fn dominates(
&self,
other: Location,
dominators: &Dominators<BasicBlock>
) -> bool[src]
&self,
other: Location,
dominators: &Dominators<BasicBlock>
) -> bool
⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
Trait Implementations
impl Clone for Location[src]
fn clone(&self) -> Location[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Ord for Location[src]
fn cmp(&self, other: &Location) -> Ordering[src]
default fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
default fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
default fn clamp(self, min: Self, max: Self) -> Self[src]
clamp)Restrict a value to a certain interval. Read more
impl Eq for Location[src]
fn assert_receiver_is_total_eq(&self)[src]
impl PartialOrd<Location> for Location[src]
fn partial_cmp(&self, other: &Location) -> Option<Ordering>[src]
fn lt(&self, other: &Location) -> bool[src]
fn le(&self, other: &Location) -> bool[src]
fn gt(&self, other: &Location) -> bool[src]
fn ge(&self, other: &Location) -> bool[src]
impl Copy for Location[src]
impl PartialEq<Location> for Location[src]
impl Debug for Location[src]
impl Hash for Location[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
default fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for Location[src]
fn hash_stable<__W: StableHasherResult>(
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher<__W>
)[src]
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher<__W>
)
Auto Trait Implementations
Blanket Implementations
impl<T> MaybeResult for T[src]
impl<'a, T> Captures for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<E> SpecializationError for E[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized, [src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<T> Erased for T[src]
impl<T> Send for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized, [src]
T: ?Sized,