pub enum Place<Prov: Provenance = AllocId> {
Ptr(MemPlace<Prov>),
Local {
frame: usize,
local: Local,
},
}
Variants
Ptr(MemPlace<Prov>)
A place referring to a value allocated in the Memory
system.
Local
To support alloc-free locals, we are able to write directly to a local.
(Without that optimization, we’d just always be a MemPlace
.)
Implementations
sourceimpl<Prov: Provenance> Place<Prov>
impl<Prov: Provenance> Place<Prov>
sourcepub fn assert_local(&self) -> (usize, Local)
pub fn assert_local(&self) -> (usize, Local)
Asserts that this points to some local variable. Returns the frame idx and the variable idx.
Trait Implementations
sourceimpl<Prov: Clone + Provenance> Clone for Place<Prov>
impl<Prov: Clone + Provenance> Clone for Place<Prov>
sourceimpl<Prov: Debug + Provenance> Debug for Place<Prov>
impl<Prov: Debug + Provenance> Debug for Place<Prov>
impl<Prov: Copy + Provenance> Copy for Place<Prov>
Auto Trait Implementations
impl<Prov> RefUnwindSafe for Place<Prov>where
Prov: RefUnwindSafe,
impl<Prov> Send for Place<Prov>where
Prov: Send,
impl<Prov> Sync for Place<Prov>where
Prov: Sync,
impl<Prov> Unpin for Place<Prov>where
Prov: Unpin,
impl<Prov> UnwindSafe for Place<Prov>where
Prov: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.