pub struct LockedHeap {
inner: Mutex<Heap>,
}Expand description
Locked heap wrapper implementing GlobalAlloc
Fields§
§inner: Mutex<Heap>Implementations§
Trait Implementations§
Source§impl GlobalAlloc for LockedHeap
impl GlobalAlloc for LockedHeap
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 LockedHeap
impl !RefUnwindSafe for LockedHeap
impl Send for LockedHeap
impl Sync for LockedHeap
impl Unpin for LockedHeap
impl UnwindSafe for LockedHeap
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