Struct x86_64::structures::paging::page_table::PageTable[][src]

#[repr(align(4096))]
#[repr(C)]
pub struct PageTable { /* fields omitted */ }

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]

impl Debug for PageTable[src]

impl Default for PageTable[src]

impl Index<PageTableIndex> for PageTable[src]

type Output = PageTableEntry

The returned type after indexing.

impl Index<usize> for PageTable[src]

type Output = PageTableEntry

The returned type after indexing.

impl IndexMut<PageTableIndex> for PageTable[src]

impl IndexMut<usize> for PageTable[src]

Auto Trait Implementations

impl Send for PageTable

impl Sync for PageTable

impl Unpin for PageTable

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.