pub struct AllocationStats {
pub total_allocations: u64,
pub total_deallocations: u64,
pub live_objects: u64,
pub peak_objects: u64,
pub total_bytes_allocated: u64,
}Expand description
Allocation statistics.
Fields§
§total_allocations: u64Total number of allocations.
total_deallocations: u64Total number of deallocations.
live_objects: u64Current number of live objects.
peak_objects: u64Peak number of live objects.
total_bytes_allocated: u64Total bytes allocated.
Trait Implementations§
Source§impl Clone for AllocationStats
impl Clone for AllocationStats
Source§fn clone(&self) -> AllocationStats
fn clone(&self) -> AllocationStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllocationStats
impl Debug for AllocationStats
Source§impl Default for AllocationStats
impl Default for AllocationStats
Source§fn default() -> AllocationStats
fn default() -> AllocationStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AllocationStats
impl RefUnwindSafe for AllocationStats
impl Send for AllocationStats
impl Sync for AllocationStats
impl Unpin for AllocationStats
impl UnsafeUnpin for AllocationStats
impl UnwindSafe for AllocationStats
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