pub struct Heap { /* private fields */ }Expand description
The heap which is used as a global allocator for the system.
It starts off with one basic fixed size allocator, the initial allocator.
When a more complex heap is created and set as the DEFAULT_ALLOCATOR, then it is used.
Implementations§
Trait Implementations§
source§impl GlobalAlloc for Heap
impl GlobalAlloc for Heap
source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate memory as described by the given
layout. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for Heap
impl Send for Heap
impl Sync for Heap
impl Unpin for Heap
impl !UnwindSafe for Heap
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