pub(crate) struct FrameState<'tcx> {
pub(crate) current_def_id: DefId,
pub(crate) instantiated_body: Option<&'tcx Body<'tcx>>,
pub(crate) local_alloc: FxHashMap<Local, AllocId>,
}Expand description
The frame-scoped subset of VmExecutor: the name → allocation binding keyed
by MIR Local, which the callee reuses, so it must be swapped out for the
duration of an inlined callee and swapped back afterwards.
§Agent Rules
Do not add new fields without human approval.
Fields§
§current_def_id: DefIdFunction executed by this frame.
instantiated_body: Option<&'tcx Body<'tcx>>Optimized MIR with this frame’s selected generic arguments substituted, if available.
local_alloc: FxHashMap<Local, AllocId>Stack allocation backing each MIR local and its field values.
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for FrameState<'tcx>
impl<'tcx> !UnwindSafe for FrameState<'tcx>
impl<'tcx> DynSend for FrameState<'tcx>
impl<'tcx> DynSync for FrameState<'tcx>
impl<'tcx> Forget for FrameState<'tcx>
impl<'tcx> Freeze for FrameState<'tcx>
impl<'tcx> Move for FrameState<'tcx>
impl<'tcx> Send for FrameState<'tcx>
impl<'tcx> Sync for FrameState<'tcx>
impl<'tcx> Unpin for FrameState<'tcx>
impl<'tcx> UnsafeUnpin for FrameState<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more