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

pub struct PageTableIndex(_);

A 9-bit index into a page table.

Can be used to select one of the 512 entries of a page table.

Guaranteed to only ever contain 0..512.

Implementations

impl PageTableIndex[src]

pub fn new(index: u16) -> Self[src]

Creates a new index from the given u16. Panics if the given value is >=512.

pub const fn new_truncate(index: u16) -> Self[src]

Creates a new index from the given u16. Throws away bits if the value is >=512.

Trait Implementations

impl Clone for PageTableIndex[src]

impl Copy for PageTableIndex[src]

impl Debug for PageTableIndex[src]

impl Eq for PageTableIndex[src]

impl From<PageTableIndex> for u16[src]

impl From<PageTableIndex> for u32[src]

impl From<PageTableIndex> for u64[src]

impl From<PageTableIndex> for usize[src]

impl Index<PageTableIndex> for PageTable[src]

type Output = PageTableEntry

The returned type after indexing.

impl IndexMut<PageTableIndex> for PageTable[src]

impl Ord for PageTableIndex[src]

impl PartialEq<PageTableIndex> for PageTableIndex[src]

impl PartialOrd<PageTableIndex> for PageTableIndex[src]

impl StructuralEq for PageTableIndex[src]

impl StructuralPartialEq for PageTableIndex[src]

Auto Trait Implementations

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.