Struct x86_64::structures::paging::Page
[−]
[src]
pub struct Page { /* fields omitted */ }
A virtual 4kB page.
Methods
impl Page
[src]
pub fn containing_address(address: VirtAddr) -> Page
[src]
Returns the page that contains the given virtual address.
pub fn from_page_table_indices(
p4_index: u9,
p3_index: u9,
p2_index: u9,
p1_index: u9
) -> Page
[src]
p4_index: u9,
p3_index: u9,
p2_index: u9,
p1_index: u9
) -> Page
pub fn start_address(&self) -> VirtAddr
[src]
Returns the start address of the page.
pub fn p4_index(&self) -> u9
[src]
Returns the level 4 page table index of this page.
pub fn p3_index(&self) -> u9
[src]
Returns the level 3 page table index of this page.
pub fn p2_index(&self) -> u9
[src]
Returns the level 2 page table index of this page.
pub fn p1_index(&self) -> u9
[src]
Returns the level 1 page table index of this page.
Trait Implementations
impl Debug for Page
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Page
[src]
fn clone(&self) -> Page
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Page
[src]
fn eq(&self, __arg_0: &Page) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Page) -> bool
[src]
This method tests for !=
.
impl PartialOrd for Page
[src]
fn partial_cmp(&self, __arg_0: &Page) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Page) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Page) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Page) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Page) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Add<u64> for Page
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u64) -> Self::Output
[src]
Performs the +
operation.
impl AddAssign<u64> for Page
[src]
fn add_assign(&mut self, rhs: u64)
[src]
Performs the +=
operation.
impl Sub<u64> for Page
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: u64) -> Self::Output
[src]
Performs the -
operation.
impl SubAssign<u64> for Page
[src]
fn sub_assign(&mut self, rhs: u64)
[src]
Performs the -=
operation.