pub struct MemoryStats {
pub total_allocated: usize,
pub total_freed: usize,
pub alloc_count: usize,
pub free_count: usize,
}Fields§
§total_allocated: usize§total_freed: usize§alloc_count: usize§free_count: usizeImplementations§
Source§impl MemoryStats
impl MemoryStats
pub fn current_usage(&self) -> usize
pub fn leak_count(&self) -> usize
Auto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnwindSafe for MemoryStats
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