Struct x86_64::structures::paging::Page
[−]
[src]
pub struct Page { /* fields omitted */ }
A virtual 4kB page.
Methods
impl Page
[src]
fn containing_address(address: VirtAddr) -> Page
[src]
Returns the page that contains the given virtual address.
fn start_address(&self) -> VirtAddr
[src]
Returns the start address of the page.
fn p4_index(&self) -> u9
[src]
Returns the level 4 page table index of this page.
fn p3_index(&self) -> u9
[src]
Returns the level 3 page table index of this page.
fn p2_index(&self) -> u9
[src]
Returns the level 2 page table index of this page.
fn p1_index(&self) -> u9
[src]
Returns the level 1 page table index of this page.
Trait Implementations
impl Debug for Page
[src]
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 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.