pub struct UefiBootAllocator;Expand description
A UEFI Boot Services pool allocation to back Rust’s global allocator.
§Notes
- Valid only while Boot Services are active (before
ExitBootServices). - We always over-allocate to satisfy alignment and store the original pointer just before the returned aligned block for correct deallocation.
Trait Implementations§
Source§impl GlobalAlloc for UefiBootAllocator
impl GlobalAlloc for UefiBootAllocator
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 UefiBootAllocator
impl RefUnwindSafe for UefiBootAllocator
impl Send for UefiBootAllocator
impl Sync for UefiBootAllocator
impl Unpin for UefiBootAllocator
impl UnwindSafe for UefiBootAllocator
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