Struct x86_64::structures::paging::page_table::PageTable
source · [−]#[repr(align(4096))]#[repr(C)]pub struct PageTable { /* private fields */ }
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
sourceimpl PageTable
impl PageTable
sourcepub fn iter(&self) -> impl Iterator<Item = &PageTableEntry>
pub fn iter(&self) -> impl Iterator<Item = &PageTableEntry>
Returns an iterator over the entries of the page table.
sourcepub fn iter_mut(&mut self) -> impl Iterator<Item = &mut PageTableEntry>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut PageTableEntry>
Returns an iterator that allows modifying the entries of the page table.
Trait Implementations
sourceimpl Index<PageTableIndex> for PageTable
impl Index<PageTableIndex> for PageTable
type Output = PageTableEntry
type Output = PageTableEntry
The returned type after indexing.
sourcefn index(&self, index: PageTableIndex) -> &Self::Output
fn index(&self, index: PageTableIndex) -> &Self::Output
Performs the indexing (container[index]
) operation. Read more
sourceimpl IndexMut<PageTableIndex> for PageTable
impl IndexMut<PageTableIndex> for PageTable
sourcefn index_mut(&mut self, index: PageTableIndex) -> &mut Self::Output
fn index_mut(&mut self, index: PageTableIndex) -> &mut Self::Output
Performs the mutable indexing (container[index]
) operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for PageTable
impl Send for PageTable
impl Sync for PageTable
impl Unpin for PageTable
impl UnwindSafe for PageTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more