[][src]Struct x86_64::structures::paging::Page

#[repr(C)]
pub struct Page<S: PageSize = Size4KiB> { /* fields omitted */ }

A virtual memory page.

Methods

impl<S: PageSize> Page<S>
[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).

Returns the page that contains the given virtual address.

Returns the start address of the page.

Returns the size the page (4KB, 2MB or 1GB).

Returns the level 4 page table index of this page.

Returns the level 3 page table index of this page.

Important traits for PageRange<S>

Returns a range of pages, exclusive end.

Important traits for PageRangeInclusive<S>

Returns a range of pages, inclusive end.

impl<S: NotGiantPageSize> Page<S>
[src]

Returns the level 2 page table index of this page.

impl Page<Size1GiB>
[src]

Returns the 1GiB memory page with the specified page table indices.

impl Page<Size2MiB>
[src]

Returns the 2MiB memory page with the specified page table indices.

impl Page<Size4KiB>
[src]

Returns the 4KiB memory page with the specified page table indices.

Returns the level 1 page table index of this page.

Trait Implementations

impl<S: PartialEq + PageSize> PartialEq<Page<S>> for Page<S>
[src]

impl<S: Eq + PageSize> Eq for Page<S>
[src]

impl<S: Ord + PageSize> Ord for Page<S>
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<S: PartialOrd + PageSize> PartialOrd<Page<S>> for Page<S>
[src]

impl<S: PageSize> Debug for Page<S>
[src]

impl<S: PageSize> Add<u64> for Page<S>
[src]

The resulting type after applying the + operator.

impl<S: PageSize> Sub<u64> for Page<S>
[src]

The resulting type after applying the - operator.

impl<S: PageSize> Sub<Page<S>> for Page<S>
[src]

The resulting type after applying the - operator.

impl<S: PageSize> AddAssign<u64> for Page<S>
[src]

impl<S: PageSize> SubAssign<u64> for Page<S>
[src]

impl<S: Copy + PageSize> Copy for Page<S>
[src]

impl<S: Clone + PageSize> Clone for Page<S>
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<S> Send for Page<S> where
    S: Send

impl<S> Sync for Page<S> where
    S: Sync

Blanket Implementations

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]