pub struct KernelMemoryAllocator { /* private fields */ }Implementations§
Source§impl KernelMemoryAllocator
impl KernelMemoryAllocator
pub const fn new() -> Self
pub fn add_memory_region(&self, memory: &mut [u8])
Trait Implementations§
Source§impl Default for KernelMemoryAllocator
impl Default for KernelMemoryAllocator
Source§impl GlobalAlloc for KernelMemoryAllocator
impl GlobalAlloc for KernelMemoryAllocator
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 KernelMemoryAllocator
impl !RefUnwindSafe for KernelMemoryAllocator
impl Send for KernelMemoryAllocator
impl Sync for KernelMemoryAllocator
impl Unpin for KernelMemoryAllocator
impl UnwindSafe for KernelMemoryAllocator
Blanket Implementations§
Source§impl<T> Background for T
impl<T> Background for T
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