Struct x86_64::structures::paging::page_table::PageTable[][src]

#[repr(align(4096))]
#[repr(C)]
pub struct PageTable { /* fields omitted */ }
Expand description

Represents a page table.

Always page-sized.

This struct implements the Index and IndexMut traits, so the entries can be accessed through index operations. For example, page_table[15] returns the 15th page table entry.

Note that while this type implements Clone, the users must be careful not to introduce mutable aliasing by using the cloned page tables.

Implementations

impl PageTable[src]

pub const fn new() -> Self[src]

Creates an empty page table.

pub fn zero(&mut self)[src]

Clears all entries.

pub fn iter(&self) -> impl Iterator<Item = &PageTableEntry>[src]

Returns an iterator over the entries of the page table.

pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut PageTableEntry>[src]

Returns an iterator that allows modifying the entries of the page table.

Trait Implementations

impl Clone for PageTable[src]

fn clone(&self) -> PageTable[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 Debug for PageTable[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for PageTable[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl Index<PageTableIndex> for PageTable[src]

type Output = PageTableEntry

The returned type after indexing.

fn index(&self, index: PageTableIndex) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl Index<usize> for PageTable[src]

type Output = PageTableEntry

The returned type after indexing.

fn index(&self, index: usize) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl IndexMut<PageTableIndex> for PageTable[src]

fn index_mut(&mut self, index: PageTableIndex) -> &mut Self::Output[src]

Performs the mutable indexing (container[index]) operation. Read more

impl IndexMut<usize> for PageTable[src]

fn index_mut(&mut self, index: usize) -> &mut Self::Output[src]

Performs the mutable indexing (container[index]) operation. Read more

Auto Trait Implementations

impl Send for PageTable

impl Sync for PageTable

impl Unpin for PageTable

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.