pub struct ScopedAllocCounter { /* private fields */ }
Expand description
A simple struct that counts the number of bytes allocated and deallocated in a scope.
Implementations§
Source§impl ScopedAllocCounter
impl ScopedAllocCounter
pub fn new() -> ScopedAllocCounter
Trait Implementations§
Source§impl Default for ScopedAllocCounter
impl Default for ScopedAllocCounter
Source§fn default() -> ScopedAllocCounter
fn default() -> ScopedAllocCounter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScopedAllocCounter
impl RefUnwindSafe for ScopedAllocCounter
impl Send for ScopedAllocCounter
impl Sync for ScopedAllocCounter
impl Unpin for ScopedAllocCounter
impl UnwindSafe for ScopedAllocCounter
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