Enum rustc_const_eval::interpret::MemoryKind
source · pub enum MemoryKind<T> {
Stack,
CallerLocation,
Machine(T),
}
Variants§
Stack
Stack memory. Error if deallocated except during a stack pop.
CallerLocation
Memory allocated by caller_location
intrinsic. Error if ever deallocated.
Machine(T)
Additional memory kinds a machine wishes to distinguish from the builtin ones.
Trait Implementations§
source§impl<T: Clone> Clone for MemoryKind<T>
impl<T: Clone> Clone for MemoryKind<T>
source§fn clone(&self) -> MemoryKind<T>
fn clone(&self) -> MemoryKind<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for MemoryKind<T>
impl<T: Debug> Debug for MemoryKind<T>
source§impl<T: Display> Display for MemoryKind<T>
impl<T: Display> Display for MemoryKind<T>
source§impl<T: PartialEq> PartialEq<MemoryKind<T>> for MemoryKind<T>
impl<T: PartialEq> PartialEq<MemoryKind<T>> for MemoryKind<T>
source§fn eq(&self, other: &MemoryKind<T>) -> bool
fn eq(&self, other: &MemoryKind<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy> Copy for MemoryKind<T>
impl<T> StructuralPartialEq for MemoryKind<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for MemoryKind<T>where T: RefUnwindSafe,
impl<T> Send for MemoryKind<T>where T: Send,
impl<T> Sync for MemoryKind<T>where T: Sync,
impl<T> Unpin for MemoryKind<T>where T: Unpin,
impl<T> UnwindSafe for MemoryKind<T>where T: UnwindSafe,
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
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.