Enum miri::MiriMemoryKind
source · pub enum MiriMemoryKind {
Rust,
Miri,
C,
WinHeap,
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.
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
Implementations§
source§impl MiriMemoryKind
impl MiriMemoryKind
sourcefn should_save_allocation_span(self) -> bool
fn should_save_allocation_span(self) -> bool
Whether we have a useful allocation span for an allocation of this kind.
Trait Implementations§
source§impl Clone for MiriMemoryKind
impl Clone for MiriMemoryKind
source§fn clone(&self) -> MiriMemoryKind
fn clone(&self) -> MiriMemoryKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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<MiriMemoryKind>
impl From<MiriMemoryKind> for MemoryKind<MiriMemoryKind>
source§fn from(kind: MiriMemoryKind) -> MemoryKind<MiriMemoryKind>
fn from(kind: MiriMemoryKind) -> MemoryKind<MiriMemoryKind>
source§impl PartialEq<MiriMemoryKind> for MiriMemoryKind
impl PartialEq<MiriMemoryKind> for MiriMemoryKind
source§fn eq(&self, other: &MiriMemoryKind) -> bool
fn eq(&self, other: &MiriMemoryKind) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for MiriMemoryKind
impl Eq for MiriMemoryKind
impl StructuralEq for MiriMemoryKind
impl StructuralPartialEq for MiriMemoryKind
Auto Trait Implementations§
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Rust
: 0 bytesMiri
: 0 bytesC
: 0 bytesWinHeap
: 0 bytesMachine
: 0 bytesRuntime
: 0 bytesGlobal
: 0 bytesExternStatic
: 0 bytesTls
: 0 bytesMmap
: 0 bytes