Enum x86_64::structures::paging::page_table::PageTableLevel
source · [−]pub enum PageTableLevel {
One,
Two,
Three,
Four,
}
Expand description
A value between 1 and 4.
Variants
One
Represents the level for a page table.
Two
Represents the level for a page directory.
Three
Represents the level for a page-directory pointer.
Four
Represents the level for a page-map level-4.
Implementations
sourceimpl PageTableLevel
impl PageTableLevel
sourcepub const fn next_lower_level(self) -> Option<Self>
pub const fn next_lower_level(self) -> Option<Self>
Returns the next lower level or None
for level 1
sourcepub const fn table_address_space_alignment(self) -> u64
pub const fn table_address_space_alignment(self) -> u64
Returns the alignment for the address space described by a table of this level.
sourcepub const fn entry_address_space_alignment(self) -> u64
pub const fn entry_address_space_alignment(self) -> u64
Returns the alignment for the address space described by an entry in a table of this level.
Trait Implementations
sourceimpl Clone for PageTableLevel
impl Clone for PageTableLevel
sourcefn clone(&self) -> PageTableLevel
fn clone(&self) -> PageTableLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PageTableLevel
impl Debug for PageTableLevel
sourceimpl Hash for PageTableLevel
impl Hash for PageTableLevel
sourceimpl Ord for PageTableLevel
impl Ord for PageTableLevel
sourceimpl PartialEq<PageTableLevel> for PageTableLevel
impl PartialEq<PageTableLevel> for PageTableLevel
sourceimpl PartialOrd<PageTableLevel> for PageTableLevel
impl PartialOrd<PageTableLevel> for PageTableLevel
sourcefn partial_cmp(&self, other: &PageTableLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &PageTableLevel) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for PageTableLevel
impl Eq for PageTableLevel
impl StructuralEq for PageTableLevel
impl StructuralPartialEq for PageTableLevel
Auto Trait Implementations
impl RefUnwindSafe for PageTableLevel
impl Send for PageTableLevel
impl Sync for PageTableLevel
impl Unpin for PageTableLevel
impl UnwindSafe for PageTableLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more