pub struct AllocationCounters {
pub allocations: usize,
pub deallocations: usize,
pub allocation_count: usize,
pub deallocation_count: usize,
/* private fields */
}
Fields§
§allocations: usize
§deallocations: usize
§allocation_count: usize
§deallocation_count: usize
Implementations§
Source§impl AllocationCounters
impl AllocationCounters
pub fn until_now(&self) -> AllocationInfo
Trait Implementations§
Source§impl Clone for AllocationCounters
impl Clone for AllocationCounters
Source§fn clone(&self) -> AllocationCounters
fn clone(&self) -> AllocationCounters
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 AllocationCounters
impl Debug for AllocationCounters
Source§impl Default for AllocationCounters
impl Default for AllocationCounters
Source§fn default() -> AllocationCounters
fn default() -> AllocationCounters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AllocationCounters
impl RefUnwindSafe for AllocationCounters
impl !Send for AllocationCounters
impl !Sync for AllocationCounters
impl Unpin for AllocationCounters
impl UnwindSafe for AllocationCounters
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