pub struct SimpleFrameAllocator { /* private fields */ }Implementations§
Source§impl SimpleFrameAllocator
impl SimpleFrameAllocator
pub fn new(kernel_end: usize, memory_end: usize) -> SimpleFrameAllocator
pub fn allocate(&mut self) -> Option<PhysFrame>
pub fn deallocate(&mut self, frame: PhysFrame)
pub fn next_frame(&self) -> usize
pub fn set_next_frame(&mut self, value: usize)
Auto Trait Implementations§
impl Forget for SimpleFrameAllocator
impl Freeze for SimpleFrameAllocator
impl RefUnwindSafe for SimpleFrameAllocator
impl Send for SimpleFrameAllocator
impl Sync for SimpleFrameAllocator
impl Unpin for SimpleFrameAllocator
impl UnsafeUnpin for SimpleFrameAllocator
impl UnwindSafe for SimpleFrameAllocator
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