Enum x86_64::structures::paging::page_table::PageTableLevel
source · pub enum PageTableLevel {
One = 1,
Two = 2,
Three = 3,
Four = 4,
}
Expand description
A value between 1 and 4.
Variants§
One = 1
Represents the level for a page table.
Two = 2
Represents the level for a page directory.
Three = 3
Represents the level for a page-directory pointer.
Four = 4
Represents the level for a page-map level-4.
Implementations§
source§impl 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 next_higher_level(self) -> Option<Self>
pub const fn next_higher_level(self) -> Option<Self>
Returns the next higher level or None
for level 4
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§
source§impl Clone for PageTableLevel
impl Clone for PageTableLevel
source§fn clone(&self) -> PageTableLevel
fn clone(&self) -> PageTableLevel
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PageTableLevel
impl Debug for PageTableLevel
source§impl Hash for PageTableLevel
impl Hash for PageTableLevel
source§impl Ord for PageTableLevel
impl Ord for PageTableLevel
source§impl PartialEq for PageTableLevel
impl PartialEq for PageTableLevel
source§fn eq(&self, other: &PageTableLevel) -> bool
fn eq(&self, other: &PageTableLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.