pub(crate) struct FrameState {
pub(crate) current_def_id: DefId,
pub(crate) local_alloc: FxHashMap<Local, AllocId>,
}Expand description
The frame-scoped subset of VmState: 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.
Fields§
§current_def_id: DefIdThe function whose body we execute (the MIR is derived via
VmState::body).
local_alloc: FxHashMap<Local, AllocId>The stack allocation backing each local’s place (lvalue identity). A
local’s whole value lives at path == [] and its field values at
path == [i, ..] in that allocation (see MemoryContent::values, keyed
(AllocId, view_ty, path) with the local’s declared type as the view
type), so there is no local-keyed value table here.
Auto Trait Implementations§
impl DynSend for FrameState
impl DynSync for FrameState
impl Freeze for FrameState
impl RefUnwindSafe for FrameState
impl Send for FrameState
impl Sync for FrameState
impl Unpin for FrameState
impl UnsafeUnpin for FrameState
impl UnwindSafe for FrameState
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> 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