pub struct KernelAllocator;Expand description
global pool allocator for use with alloc crate
Trait Implementations§
Source§impl GlobalAlloc for KernelAllocator
impl GlobalAlloc for KernelAllocator
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 KernelAllocator
impl RefUnwindSafe for KernelAllocator
impl Send for KernelAllocator
impl Sync for KernelAllocator
impl Unpin for KernelAllocator
impl UnwindSafe for KernelAllocator
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