pub struct Stats {
pub capacity: usize,
pub free: usize,
pub heaps_in_use: usize,
}Expand description
A snapshot of a region’s occupancy, in bytes.
Fields§
§capacity: usizeThe size of the managed memory.
free: usizeHow much of it is not currently part of any slab or huge allocation. Memory inside slabs that is free but not yet returned is not counted.
heaps_in_use: usizeHow many heaps are claimed right now.
Trait Implementations§
impl Copy for Stats
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Forget for Stats
impl Freeze for Stats
impl Move for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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