pub struct PageTable { /* private fields */ }Expand description
A page table with 512 entries
Implementations§
Source§impl PageTable
impl PageTable
Sourcepub fn iter(&self) -> impl Iterator<Item = &PageTableEntry>
pub fn iter(&self) -> impl Iterator<Item = &PageTableEntry>
Get an iterator over all entries
Sourcepub fn iter_mut(&mut self) -> impl Iterator<Item = &mut PageTableEntry>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut PageTableEntry>
Get a mutable iterator over all entries
Trait Implementations§
Source§impl Index<PageTableIndex> for PageTable
impl Index<PageTableIndex> for PageTable
Source§type Output = PageTableEntry
type Output = PageTableEntry
The returned type after indexing.
Source§fn index(&self, index: PageTableIndex) -> &Self::Output
fn index(&self, index: PageTableIndex) -> &Self::Output
Performs the indexing (
container[index]) operation. Read moreSource§impl IndexMut<PageTableIndex> for PageTable
impl IndexMut<PageTableIndex> for PageTable
Source§fn 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