Enum miri::MiriMemoryKind
source · pub enum MiriMemoryKind {
Rust,
Miri,
C,
WinHeap,
WinLocal,
Machine,
Runtime,
Global,
ExternStatic,
Tls,
Mmap,
}
Expand description
Extra memory kinds
Variants§
Rust
__rust_alloc
memory.
Miri
miri_alloc
memory.
C
malloc
memory.
WinHeap
Windows HeapAlloc
memory.
WinLocal
Windows “local” memory (to be freed with LocalFree
)
Machine
Memory for args, errno, and other parts of the machine-managed environment. This memory may leak.
Runtime
Memory allocated by the runtime (e.g. env vars). Separate from Machine
because we clean it up and leak-check it.
Global
Globals copied from tcx
.
This memory may leak.
ExternStatic
Memory for extern statics. This memory may leak.
Tls
Memory for thread-local statics. This memory may leak.
Mmap
Memory mapped directly by the program
Trait Implementations§
source§impl Clone for MiriMemoryKind
impl Clone for MiriMemoryKind
source§fn clone(&self) -> MiriMemoryKind
fn clone(&self) -> MiriMemoryKind
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 Debug for MiriMemoryKind
impl Debug for MiriMemoryKind
source§impl Display for MiriMemoryKind
impl Display for MiriMemoryKind
source§impl From<MiriMemoryKind> for MemoryKind
impl From<MiriMemoryKind> for MemoryKind
source§fn from(kind: MiriMemoryKind) -> MemoryKind
fn from(kind: MiriMemoryKind) -> MemoryKind
Converts to this type from the input type.
source§impl PartialEq for MiriMemoryKind
impl PartialEq for MiriMemoryKind
source§fn eq(&self, other: &MiriMemoryKind) -> bool
fn eq(&self, other: &MiriMemoryKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MiriMemoryKind
impl Eq for MiriMemoryKind
impl StructuralPartialEq for MiriMemoryKind
Auto Trait Implementations§
impl Freeze for MiriMemoryKind
impl RefUnwindSafe for MiriMemoryKind
impl Send for MiriMemoryKind
impl Sync for MiriMemoryKind
impl Unpin for MiriMemoryKind
impl UnwindSafe for MiriMemoryKind
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