#[repr(C)]pub struct mi_memory_change_t {
pub kind: mi_memory_change_kind_t,
pub total_bytes: u64,
pub delta_bytes: i64,
pub request_size: u64,
}Expand description
Mirrors mi_memory_change_t (include/mimalloc/memory-events.h) field-for-field.
Fields§
§kind: mi_memory_change_kind_tOne of MI_MEMORY_ALLOCATE / MI_MEMORY_FREE / MI_MEMORY_RESIZE.
total_bytes: u64Tracked global live usable bytes after this operation.
delta_bytes: i64Signed change in tracked live usable bytes caused by this operation.
request_size: u64Caller-requested size for allocation and resize; zero for free.
Trait Implementations§
Source§impl Clone for mi_memory_change_t
impl Clone for mi_memory_change_t
impl Copy for mi_memory_change_t
Source§impl Debug for mi_memory_change_t
impl Debug for mi_memory_change_t
Source§impl Default for mi_memory_change_t
impl Default for mi_memory_change_t
impl Eq for mi_memory_change_t
Source§impl PartialEq for mi_memory_change_t
impl PartialEq for mi_memory_change_t
impl StructuralPartialEq for mi_memory_change_t
Auto Trait Implementations§
impl Freeze for mi_memory_change_t
impl RefUnwindSafe for mi_memory_change_t
impl Send for mi_memory_change_t
impl Sync for mi_memory_change_t
impl Unpin for mi_memory_change_t
impl UnsafeUnpin for mi_memory_change_t
impl UnwindSafe for mi_memory_change_t
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