pub struct PageAlloc;Trait Implementations§
Source§impl PageRangeAllocator for PageAlloc
impl PageRangeAllocator for PageAlloc
unsafe fn init()
Source§fn allocate(layout: PageLayout) -> Result<PageRange, AllocError>
fn allocate(layout: PageLayout) -> Result<PageRange, AllocError>
Attempts to allocate a range of memory in page granularity.
Source§fn allocate_at(range: PageRange) -> Result<(), AllocError>
fn allocate_at(range: PageRange) -> Result<(), AllocError>
Attempts to allocate the pages described by
range.Source§unsafe fn deallocate(range: PageRange)
unsafe fn deallocate(range: PageRange)
Deallocates the pages described by
range. Read moreAuto Trait Implementations§
impl Freeze for PageAlloc
impl RefUnwindSafe for PageAlloc
impl Send for PageAlloc
impl Sync for PageAlloc
impl Unpin for PageAlloc
impl UnwindSafe for PageAlloc
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