Struct paralegal_spdg::rustc::mir::MirSource
source · pub struct MirSource<'tcx> {
pub instance: InstanceDef<'tcx>,
pub promoted: Option<Promoted>,
}
Expand description
Where a specific mir::Body
comes from.
Fields§
§instance: InstanceDef<'tcx>
§promoted: Option<Promoted>
If Some
, this is a promoted rvalue within the parent function.
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for MirSource<'tcx>
impl<'tcx> !Send for MirSource<'tcx>
impl<'tcx> !Sync for MirSource<'tcx>
impl<'tcx> Unpin for MirSource<'tcx>
impl<'tcx> !UnwindSafe for MirSource<'tcx>
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.