pub struct ThreadAllocations { /* private fields */ }Expand description
Allocation counters recorded for a single thread by MemoryManager.
Implementations§
Source§impl ThreadAllocations
impl ThreadAllocations
Sourcepub const fn allocations(self) -> usize
pub const fn allocations(self) -> usize
Number of allocations performed on the thread.
Sourcepub const fn allocated_bytes(self) -> usize
pub const fn allocated_bytes(self) -> usize
Total bytes allocated on the thread (not reduced by deallocations).
Sourcepub const fn deallocated_bytes(self) -> usize
pub const fn deallocated_bytes(self) -> usize
Total bytes deallocated on the thread.
Trait Implementations§
Source§impl Clone for ThreadAllocations
impl Clone for ThreadAllocations
Source§fn clone(&self) -> ThreadAllocations
fn clone(&self) -> ThreadAllocations
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThreadAllocations
impl Debug for ThreadAllocations
Source§impl Default for ThreadAllocations
impl Default for ThreadAllocations
Source§fn default() -> ThreadAllocations
fn default() -> ThreadAllocations
Returns the “default value” for a type. Read more
Source§impl PartialEq for ThreadAllocations
impl PartialEq for ThreadAllocations
Source§fn eq(&self, other: &ThreadAllocations) -> bool
fn eq(&self, other: &ThreadAllocations) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ThreadAllocations
impl Eq for ThreadAllocations
impl StructuralPartialEq for ThreadAllocations
Auto Trait Implementations§
impl Freeze for ThreadAllocations
impl RefUnwindSafe for ThreadAllocations
impl Send for ThreadAllocations
impl Sync for ThreadAllocations
impl Unpin for ThreadAllocations
impl UnsafeUnpin for ThreadAllocations
impl UnwindSafe for ThreadAllocations
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