We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
impl PageTableFrameMapping for &P
1 parent 7f4d2bb commit 7ff6b36Copy full SHA for 7ff6b36
src/structures/paging/mapper/mapped_page_table.rs
@@ -881,3 +881,10 @@ pub unsafe trait PageTableFrameMapping {
881
/// Translate the given physical frame to a virtual page table pointer.
882
fn frame_to_pointer(&self, frame: PhysFrame) -> *mut PageTable;
883
}
884
+
885
+unsafe impl<P: PageTableFrameMapping + ?Sized> PageTableFrameMapping for &P {
886
+ #[inline]
887
+ fn frame_to_pointer(&self, frame: PhysFrame) -> *mut PageTable {
888
+ (**self).frame_to_pointer(frame)
889
+ }
890
+}
0 commit comments