pub struct Counting;Expand description
The system allocator, counting what each thread allocates. See the module documentation for how a binary installs it.
Trait Implementations§
Source§impl GlobalAlloc for Counting
impl GlobalAlloc for Counting
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 Freeze for Counting
impl RefUnwindSafe for Counting
impl Send for Counting
impl Sync for Counting
impl Unpin for Counting
impl UnsafeUnpin for Counting
impl UnwindSafe for Counting
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