[−][src]Struct x86_64::structures::paging::page_table::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]
fn clone(&self) -> PageTableIndex
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PageTableIndex
[src]
impl Debug for PageTableIndex
[src]
impl Eq for PageTableIndex
[src]
impl From<PageTableIndex> for u16
[src]
fn from(index: PageTableIndex) -> Self
[src]
impl From<PageTableIndex> for u32
[src]
fn from(index: PageTableIndex) -> Self
[src]
impl From<PageTableIndex> for u64
[src]
fn from(index: PageTableIndex) -> Self
[src]
impl From<PageTableIndex> for usize
[src]
fn from(index: PageTableIndex) -> Self
[src]
impl Index<PageTableIndex> for PageTable
[src]
type Output = PageTableEntry
The returned type after indexing.
fn index(&self, index: PageTableIndex) -> &Self::Output
[src]
impl IndexMut<PageTableIndex> for PageTable
[src]
fn index_mut(&mut self, index: PageTableIndex) -> &mut Self::Output
[src]
impl Ord for PageTableIndex
[src]
fn cmp(&self, other: &PageTableIndex) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PageTableIndex> for PageTableIndex
[src]
fn eq(&self, other: &PageTableIndex) -> bool
[src]
fn ne(&self, other: &PageTableIndex) -> bool
[src]
impl PartialOrd<PageTableIndex> for PageTableIndex
[src]
fn partial_cmp(&self, other: &PageTableIndex) -> Option<Ordering>
[src]
fn lt(&self, other: &PageTableIndex) -> bool
[src]
fn le(&self, other: &PageTableIndex) -> bool
[src]
fn gt(&self, other: &PageTableIndex) -> bool
[src]
fn ge(&self, other: &PageTableIndex) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,