pub struct HeapInfo {
pub free_bytes: usize,
pub free_blocks: usize,
pub largest_free_block: usize,
}Expand description
A snapshot of statistics for the system’s dynamic memory heap.
Fields§
§free_bytes: usizeTotal number of free bytes available in the heap.
free_blocks: usizeTotal number of free blocks in the heap.
largest_free_block: usizeThe size of the largest contiguous free block available.
Implementations§
Trait Implementations§
impl Copy for HeapInfo
impl Eq for HeapInfo
impl StructuralPartialEq for HeapInfo
Auto Trait Implementations§
impl Freeze for HeapInfo
impl RefUnwindSafe for HeapInfo
impl Send for HeapInfo
impl Sync for HeapInfo
impl Unpin for HeapInfo
impl UnsafeUnpin for HeapInfo
impl UnwindSafe for HeapInfo
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