pub struct LazyHeap(/* private fields */);
Expand description
A wrapper around slab_allocator_rs::LockedHeap
that initializes the heap lazily.
Implementations§
Trait Implementations§
Source§impl GlobalAlloc for LazyHeap
impl GlobalAlloc for LazyHeap
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 LazyHeap
impl !RefUnwindSafe for LazyHeap
impl Send for LazyHeap
impl Sync for LazyHeap
impl Unpin for LazyHeap
impl !UnwindSafe for LazyHeap
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