Enum miri::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 From<MiriMemoryKind> for MemoryKind<MiriMemoryKind>
impl From<MiriMemoryKind> for MemoryKind<MiriMemoryKind>
source§fn from(kind: MiriMemoryKind) -> MemoryKind<MiriMemoryKind>
fn from(kind: MiriMemoryKind) -> MemoryKind<MiriMemoryKind>
Converts to this type from the input type.
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§
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.