Struct os::mm::frame_allocator::StackFrameAllocator
source · pub struct StackFrameAllocator {
current: usize,
end: usize,
recycled: Vec<usize>,
}
Expand description
an implementation for frame allocator
Fields§
§current: usize
§end: usize
§recycled: Vec<usize>
Implementations§
source§impl StackFrameAllocator
impl StackFrameAllocator
pub fn init(&mut self, l: PhysPageNum, r: PhysPageNum)
Trait Implementations§
source§impl FrameAllocator for StackFrameAllocator
impl FrameAllocator for StackFrameAllocator
Auto Trait Implementations§
impl Freeze for StackFrameAllocator
impl RefUnwindSafe for StackFrameAllocator
impl Send for StackFrameAllocator
impl Sync for StackFrameAllocator
impl Unpin for StackFrameAllocator
impl UnwindSafe for StackFrameAllocator
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