Enum rustc_const_eval::interpret::memory::MemoryKind [−][src]
pub enum MemoryKind<T> {
Stack,
CallerLocation,
Machine(T),
}
Variants
Stack memory. Error if deallocated except during a stack pop.
Memory allocated by caller_location
intrinsic. Error if ever deallocated.
Additional memory kinds a machine wishes to distinguish from the builtin ones.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
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.