Struct project1::page_table::Pde
source · #[repr(transparent)]pub struct Pde(pub usize);
Expand description
Page directory entry.
Tuple Fields§
§0: usize
Implementations§
source§impl Pde
impl Pde
sourcepub fn set_pa(&mut self, pa: Pa) -> Result<&mut Self, PageTableMappingError>
pub fn set_pa(&mut self, pa: Pa) -> Result<&mut Self, PageTableMappingError>
sourcepub fn into_pt_mut(&mut self) -> Result<&mut [Pte], PageTableMappingError>
pub fn into_pt_mut(&mut self) -> Result<&mut [Pte], PageTableMappingError>
Get a mutable reference of page table pointed by this entry.
sourcepub fn into_pt(&self) -> Result<&[Pte], PageTableMappingError>
pub fn into_pt(&self) -> Result<&[Pte], PageTableMappingError>
Get a reference of page table pointed by this entry.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Pde
impl Send for Pde
impl Sync for Pde
impl Unpin for Pde
impl UnwindSafe for Pde
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more