pub struct Pooled;Expand description
A size-classed free list over the system allocator.
Install it in a binary with
ⓘ
#[global_allocator]
static ALLOCATOR: inillucent_base::alloc::Pooled = inillucent_base::alloc::Pooled;It is per binary rather than per library because only a binary can name a global allocator, and because the choice belongs to whoever is running the program.
Trait Implementations§
Source§impl GlobalAlloc for Pooled
impl GlobalAlloc for Pooled
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 Pooled
impl RefUnwindSafe for Pooled
impl Send for Pooled
impl Sync for Pooled
impl Unpin for Pooled
impl UnsafeUnpin for Pooled
impl UnwindSafe for Pooled
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