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.
2 parents b348f50 + 7ff6b36 commit 72954bbCopy full SHA for 72954bb
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