pub struct AllocStats {
pub all_time: AllTimeAllocStats,
pub since_last: IncrementalAllocStats,
}
Expand description
Statistics for allocations and deallocations made with an AccountingAlloc
, across all threads.
Fields§
§all_time: AllTimeAllocStats
Allocator statistics over all time.
since_last: IncrementalAllocStats
Allocator statistics since the last call to AccountingAlloc::count
.
Trait Implementations§
Source§impl Clone for AllocStats
impl Clone for AllocStats
Source§fn clone(&self) -> AllocStats
fn clone(&self) -> AllocStats
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AllocStats
impl Debug for AllocStats
Source§impl Default for AllocStats
impl Default for AllocStats
Source§fn default() -> AllocStats
fn default() -> AllocStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for AllocStats
impl PartialEq for AllocStats
impl Copy for AllocStats
impl Eq for AllocStats
impl StructuralPartialEq for AllocStats
Auto Trait Implementations§
impl Freeze for AllocStats
impl RefUnwindSafe for AllocStats
impl Send for AllocStats
impl Sync for AllocStats
impl Unpin for AllocStats
impl UnwindSafe for AllocStats
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