Struct paralegal_spdg::rustc::mir::Location
source · pub struct Location {
pub block: BasicBlock,
pub statement_index: usize,
}
Expand description
Location
represents the position of the start of the statement; or, if
statement_index
equals the number of statements, then the start of the
terminator.
Fields§
§block: BasicBlock
The block that the location is within.
statement_index: usize
Trait Implementations§
source§impl From<Location> for RichLocation
impl From<Location> for RichLocation
source§fn from(value: Location) -> RichLocation
fn from(value: Location) -> RichLocation
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.