Enum rustc_const_eval::interpret::Place
source · [−]pub enum Place<Tag: Provenance = AllocId> {
Ptr(MemPlace<Tag>),
Local {
frame: usize,
local: Local,
},
}Variants
Ptr(MemPlace<Tag>)
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<Tag: Provenance> Place<Tag>
impl<Tag: Provenance> Place<Tag>
pub fn assert_mem_place(self) -> MemPlace<Tag>
Trait Implementations
sourceimpl<Tag: Clone + Provenance> Clone for Place<Tag>
impl<Tag: Clone + Provenance> Clone for Place<Tag>
sourceimpl<Tag: Debug + Provenance> Debug for Place<Tag>
impl<Tag: Debug + Provenance> Debug for Place<Tag>
sourceimpl<Tag: Hash + Provenance> Hash for Place<Tag>
impl<Tag: Hash + Provenance> Hash for Place<Tag>
sourceimpl<'__ctx, Tag: Provenance> HashStable<StableHashingContext<'__ctx>> for Place<Tag> where
Tag: HashStable<StableHashingContext<'__ctx>>,
impl<'__ctx, Tag: Provenance> HashStable<StableHashingContext<'__ctx>> for Place<Tag> where
Tag: HashStable<StableHashingContext<'__ctx>>,
fn hash_stable(
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)
impl<Tag: Copy + Provenance> Copy for Place<Tag>
impl<Tag: Eq + Provenance> Eq for Place<Tag>
impl<Tag: Provenance> StructuralEq for Place<Tag>
impl<Tag: Provenance> StructuralPartialEq for Place<Tag>
Auto Trait Implementations
impl<Tag> RefUnwindSafe for Place<Tag> where
Tag: RefUnwindSafe,
impl<Tag> Send for Place<Tag> where
Tag: Send,
impl<Tag> Sync for Place<Tag> where
Tag: Sync,
impl<Tag> Unpin for Place<Tag> where
Tag: Unpin,
impl<Tag> UnwindSafe for Place<Tag> where
Tag: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. 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.