pub struct PageTableFormatter<Meta: VmMeta, F: Fn(PPN<Meta>) -> NonNull<Pte<Meta>>> {
pub pt: PageTable<Meta>,
pub f: F,
}
Expand description
页表格式化器。
为了遍历,需要知道在当前地址空间访问物理页的方法。
Fields§
§pt: PageTable<Meta>
根页表。
f: F
物理页转换为指针。
Trait Implementations§
Auto Trait Implementations§
impl<Meta, F> Freeze for PageTableFormatter<Meta, F>where
F: Freeze,
impl<Meta, F> RefUnwindSafe for PageTableFormatter<Meta, F>where
F: RefUnwindSafe,
Meta: RefUnwindSafe,
impl<Meta, F> Send for PageTableFormatter<Meta, F>
impl<Meta, F> Sync for PageTableFormatter<Meta, F>
impl<Meta, F> Unpin for PageTableFormatter<Meta, F>
impl<Meta, F> !UnwindSafe for PageTableFormatter<Meta, F>
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