Struct project1::page_table::Pml4e
source · #[repr(transparent)]pub struct Pml4e(pub usize);
Expand description
Page Map Level 4 entry.
Tuple Fields§
§0: usize
Implementations§
source§impl Pml4e
impl Pml4e
sourcepub const fn flags(&self) -> Pml4eFlags
pub const fn flags(&self) -> Pml4eFlags
Get a flags this entry.
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 set_perm(&mut self, perm: Pml4eFlags) -> &mut Self
pub fn set_perm(&mut self, perm: Pml4eFlags) -> &mut Self
Set a permission of this entry.
sourcepub fn into_pdp_mut(&mut self) -> Result<&mut [Pdpe], PageTableMappingError>
pub fn into_pdp_mut(&mut self) -> Result<&mut [Pdpe], PageTableMappingError>
Get a mutable reference of page directory pointer table pointed by this entry.
sourcepub fn into_pdp(&self) -> Result<&[Pdpe], PageTableMappingError>
pub fn into_pdp(&self) -> Result<&[Pdpe], PageTableMappingError>
Get a reference of page directory pointer table pointed by this entry.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Pml4e
impl Send for Pml4e
impl Sync for Pml4e
impl Unpin for Pml4e
impl UnwindSafe for Pml4e
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