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
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
impl From<MiriMemoryKind> for MemoryKind
Source§fn from(kind: MiriMemoryKind) -> MemoryKind
fn from(kind: MiriMemoryKind) -> MemoryKind
Source§impl PartialEq for MiriMemoryKind
impl PartialEq for MiriMemoryKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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 bytesWinLocal
: 0 bytesMachine
: 0 bytesRuntime
: 0 bytesGlobal
: 0 bytesExternStatic
: 0 bytesTls
: 0 bytesMmap
: 0 bytes