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

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

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.

Methods

impl PageTable[src]

pub 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 Debug for PageTable[src]

impl Index<usize> for PageTable[src]

type Output = PageTableEntry

The returned type after indexing.

impl Index<u9> for PageTable[src]

type Output = PageTableEntry

The returned type after indexing.

impl IndexMut<usize> for PageTable[src]

impl IndexMut<u9> for PageTable[src]

Auto Trait Implementations

impl Unpin for PageTable

impl Sync for PageTable

impl Send for PageTable

Blanket Implementations

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.

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

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

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.

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

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

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