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
sourceimpl<T: Clone> Clone for MemoryKind<T>
impl<T: Clone> Clone for MemoryKind<T>
sourcefn clone(&self) -> MemoryKind<T>
fn clone(&self) -> MemoryKind<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for MemoryKind<T>
impl<T: Debug> Debug for MemoryKind<T>
sourceimpl<T: Display> Display for MemoryKind<T>
impl<T: Display> Display for MemoryKind<T>
sourceimpl<T: PartialEq> PartialEq<MemoryKind<T>> for MemoryKind<T>
impl<T: PartialEq> PartialEq<MemoryKind<T>> for MemoryKind<T>
sourcefn eq(&self, other: &MemoryKind<T>) -> bool
fn eq(&self, other: &MemoryKind<T>) -> bool
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
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.