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 · Source§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§fn cmp(&self, other: &PageTableLevel) -> Ordering
fn cmp(&self, other: &PageTableLevel) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PageTableLevel
impl PartialEq for PageTableLevel
Source§impl PartialOrd for PageTableLevel
impl PartialOrd for PageTableLevel
impl Copy for PageTableLevel
impl Eq for PageTableLevel
impl StructuralPartialEq for PageTableLevel
Auto Trait Implementations§
impl Freeze for PageTableLevel
impl RefUnwindSafe for PageTableLevel
impl Send for PageTableLevel
impl Sync for PageTableLevel
impl Unpin for PageTableLevel
impl UnwindSafe for PageTableLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more