Struct x86_64::structures::paging::page_table::PageTable [−][src]
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]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PageTable
[src]
impl Default for PageTable
[src]
impl Index<PageTableIndex> for PageTable
[src]
type Output = PageTableEntry
The returned type after indexing.
fn index(&self, index: PageTableIndex) -> &Self::Output
[src]
impl Index<usize> for PageTable
[src]
type Output = PageTableEntry
The returned type after indexing.
fn index(&self, index: usize) -> &Self::Output
[src]
impl IndexMut<PageTableIndex> for PageTable
[src]
fn index_mut(&mut self, index: PageTableIndex) -> &mut Self::Output
[src]
impl IndexMut<usize> for PageTable
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,