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
sourceimpl From<MiriMemoryKind> for MemoryKind<MiriMemoryKind>
impl From<MiriMemoryKind> for MemoryKind<MiriMemoryKind>
sourcefn 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
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
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
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.