[−][src]Struct x86_64::structures::paging::page_table::PageTable
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.
fn index(&self, index: usize) -> &Self::Output
[src]
impl Index<PageTableIndex> for PageTable
[src]
type Output = PageTableEntry
The returned type after indexing.
fn index(&self, index: PageTableIndex) -> &Self::Output
[src]
impl IndexMut<usize> for PageTable
[src]
impl IndexMut<PageTableIndex> for PageTable
[src]
fn index_mut(&mut self, index: PageTableIndex) -> &mut Self::Output
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,