pub struct TrackingAllocator<A: GlobalAlloc> { /* private fields */ }
Implementations§
source§impl<A: GlobalAlloc> TrackingAllocator<A>
impl<A: GlobalAlloc> TrackingAllocator<A>
Trait Implementations§
source§impl<A: Default + GlobalAlloc> Default for TrackingAllocator<A>
impl<A: Default + GlobalAlloc> Default for TrackingAllocator<A>
source§fn default() -> TrackingAllocator<A>
fn default() -> TrackingAllocator<A>
Returns the “default value” for a type. Read more
source§impl<A: GlobalAlloc> GlobalAlloc for TrackingAllocator<A>
impl<A: GlobalAlloc> GlobalAlloc for TrackingAllocator<A>
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 moresource§unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
Behaves like
alloc
, but also ensures that the contents
are set to zero before being returned. Read moreAuto Trait Implementations§
impl<A> Freeze for TrackingAllocator<A>where
A: Freeze,
impl<A> RefUnwindSafe for TrackingAllocator<A>where
A: RefUnwindSafe,
impl<A> Send for TrackingAllocator<A>where
A: Send,
impl<A> Sync for TrackingAllocator<A>where
A: Sync,
impl<A> Unpin for TrackingAllocator<A>where
A: Unpin,
impl<A> UnwindSafe for TrackingAllocator<A>where
A: UnwindSafe,
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