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]
impl PageTable
[src]pub fn iter(&self) -> impl Iterator<Item = &PageTableEntry>
[src]
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]
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 Index<PageTableIndex> for PageTable
[src]
impl Index<PageTableIndex> for PageTable
[src]type Output = PageTableEntry
type Output = PageTableEntry
The returned type after indexing.
fn index(&self, index: PageTableIndex) -> &Self::Output
[src]
fn index(&self, index: PageTableIndex) -> &Self::Output
[src]Performs the indexing (container[index]
) operation. Read more
impl IndexMut<PageTableIndex> for PageTable
[src]
impl IndexMut<PageTableIndex> for PageTable
[src]fn index_mut(&mut self, index: PageTableIndex) -> &mut Self::Output
[src]
fn index_mut(&mut self, index: PageTableIndex) -> &mut Self::Output
[src]Performs the mutable indexing (container[index]
) operation. Read more