pub struct HeapAllocator<T>where
T: Allocator,{
backing_allocator: T,
alloc: Mutex<(Heap<31>, Vec<(NonNull<[u8]>, Layout)>)>,
}
Fields§
§backing_allocator: T
§alloc: Mutex<(Heap<31>, Vec<(NonNull<[u8]>, Layout)>)>
Implementations§
Trait Implementations§
Source§impl<T> Allocator for HeapAllocator<T>where
T: Allocator,
impl<T> Allocator for HeapAllocator<T>where
T: Allocator,
Auto Trait Implementations§
impl<T> !Freeze for HeapAllocator<T>
impl<T> RefUnwindSafe for HeapAllocator<T>where
T: RefUnwindSafe,
impl<T> !Send for HeapAllocator<T>
impl<T> !Sync for HeapAllocator<T>
impl<T> Unpin for HeapAllocator<T>where
T: Unpin,
impl<T> UnwindSafe for HeapAllocator<T>where
T: 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