pub struct TrackingAllocator;Expand description
Global allocator that counts allocations, bytes, and live memory with
per-stage ownership. Install with #[global_allocator]. Without the
allocation-tracking feature every method inlines to the system allocator.
Implementations§
Trait Implementations§
Source§impl Default for TrackingAllocator
impl Default for TrackingAllocator
Source§impl GlobalAlloc for TrackingAllocator
impl GlobalAlloc for TrackingAllocator
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout. Read moreAuto Trait Implementations§
impl Freeze for TrackingAllocator
impl RefUnwindSafe for TrackingAllocator
impl Send for TrackingAllocator
impl Sync for TrackingAllocator
impl Unpin for TrackingAllocator
impl UnsafeUnpin for TrackingAllocator
impl UnwindSafe for TrackingAllocator
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