[−][src]Struct x86_64::structures::paging::Page
A virtual memory page.
Methods
impl<S: PageSize> Page<S>
[src]
impl<S: PageSize> Page<S>
pub const SIZE: u64
[src]
The page size in bytes.
pub fn from_start_address(address: VirtAddr) -> Result<Self, ()> | [src] |
Returns the page that starts at the given virtual address.
Returns an error if the address is not correctly aligned (i.e. is not a valid page start).
pub fn containing_address(address: VirtAddr) -> Self | [src] |
Returns the page that contains the given virtual address.
pub fn start_address(&self) -> VirtAddr | [src] |
Returns the start address of the page.
pub const fn size(&self) -> u64 | [src] |
Returns the size the page (4KB, 2MB or 1GB).
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.
ⓘImportant traits for PageRange<S>
pub fn range(start: Self, end: Self) -> PageRange<S> | [src] |
Returns a range of pages, exclusive end
.
ⓘImportant traits for PageRangeInclusive<S>
pub fn range_inclusive(start: Self, end: Self) -> PageRangeInclusive<S> | [src] |
Returns a range of pages, inclusive end
.
impl<S: NotGiantPageSize> Page<S>
[src]
impl<S: NotGiantPageSize> Page<S>
impl Page<Size1GiB>
[src]
impl Page<Size1GiB>
pub fn from_page_table_indices_1gib(p4_index: u9, p3_index: u9) -> Self | [src] |
Returns the 1GiB memory page with the specified page table indices.
impl Page<Size2MiB>
[src]
impl Page<Size2MiB>
pub fn from_page_table_indices_2mib( | [src] |
Returns the 2MiB memory page with the specified page table indices.
impl Page<Size4KiB>
[src]
impl Page<Size4KiB>
pub fn from_page_table_indices( | [src] |
Returns the 4KiB memory page with the specified page table indices.
pub fn p1_index(&self) -> u9 | [src] |
Returns the level 1 page table index of this page.
Trait Implementations
impl<S: Copy + PageSize> Copy for Page<S>
[src]
impl<S: Copy + PageSize> Copy for Page<S>
impl<S: PartialEq + PageSize> PartialEq<Page<S>> for Page<S>
[src]
impl<S: PartialEq + PageSize> PartialEq<Page<S>> for Page<S>
impl<S: Eq + PageSize> Eq for Page<S>
[src]
impl<S: Eq + PageSize> Eq for Page<S>
impl<S: Ord + PageSize> Ord for Page<S>
[src]
impl<S: Ord + PageSize> Ord for Page<S>
fn cmp(&self, other: &Page<S>) -> Ordering | [src] |
fn max(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the minimum of two values. Read more
impl<S: PartialOrd + PageSize> PartialOrd<Page<S>> for Page<S>
[src]
impl<S: PartialOrd + PageSize> PartialOrd<Page<S>> for Page<S>
fn partial_cmp(&self, other: &Page<S>) -> Option<Ordering> | [src] |
fn lt(&self, other: &Page<S>) -> bool | [src] |
fn le(&self, other: &Page<S>) -> bool | [src] |
fn gt(&self, other: &Page<S>) -> bool | [src] |
fn ge(&self, other: &Page<S>) -> bool | [src] |
impl<S: Clone + PageSize> Clone for Page<S>
[src]
impl<S: Clone + PageSize> Clone for Page<S>
fn clone(&self) -> Page<S> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<S: PageSize> Debug for Page<S>
[src]
impl<S: PageSize> Debug for Page<S>
impl<S: PageSize> Sub<u64> for Page<S>
[src]
impl<S: PageSize> Sub<u64> for Page<S>
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: u64) -> Self::Output | [src] |
impl<S: PageSize> Sub<Page<S>> for Page<S>
[src]
impl<S: PageSize> Sub<Page<S>> for Page<S>
type Output = u64
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output | [src] |
impl<S: PageSize> Add<u64> for Page<S>
[src]
impl<S: PageSize> Add<u64> for Page<S>
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u64) -> Self::Output | [src] |
impl<S: PageSize> AddAssign<u64> for Page<S>
[src]
impl<S: PageSize> AddAssign<u64> for Page<S>
fn add_assign(&mut self, rhs: u64) | [src] |
impl<S: PageSize> SubAssign<u64> for Page<S>
[src]
impl<S: PageSize> SubAssign<u64> for Page<S>
fn sub_assign(&mut self, rhs: u64) | [src] |
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |