Struct x86_64::structures::paging::page_table::PageTableIndex [−][src]
pub struct PageTableIndex(_);
Expand description
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]
impl PageTableIndex
[src]pub fn new(index: u16) -> Self
[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]
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 Clone for PageTableIndex
[src]fn clone(&self) -> PageTableIndex
[src]
fn clone(&self) -> PageTableIndex
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for PageTableIndex
[src]
impl Debug for PageTableIndex
[src]impl Index<PageTableIndex> for PageTable
[src]
impl Index<PageTableIndex> for PageTable
[src]type Output = PageTableEntry
type Output = PageTableEntry
The returned type after indexing.
fn index(&self, index: PageTableIndex) -> &Self::Output
[src]
fn index(&self, index: PageTableIndex) -> &Self::Output
[src]Performs the indexing (container[index]
) operation. Read more
impl IndexMut<PageTableIndex> for PageTable
[src]
impl IndexMut<PageTableIndex> for PageTable
[src]fn index_mut(&mut self, index: PageTableIndex) -> &mut Self::Output
[src]
fn index_mut(&mut self, index: PageTableIndex) -> &mut Self::Output
[src]Performs the mutable indexing (container[index]
) operation. Read more
impl Ord for PageTableIndex
[src]
impl Ord for PageTableIndex
[src]impl PartialEq<PageTableIndex> for PageTableIndex
[src]
impl PartialEq<PageTableIndex> for PageTableIndex
[src]fn eq(&self, other: &PageTableIndex) -> bool
[src]
fn eq(&self, other: &PageTableIndex) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &PageTableIndex) -> bool
[src]
fn ne(&self, other: &PageTableIndex) -> bool
[src]This method tests for !=
.
impl PartialOrd<PageTableIndex> for PageTableIndex
[src]
impl PartialOrd<PageTableIndex> for PageTableIndex
[src]fn partial_cmp(&self, other: &PageTableIndex) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &PageTableIndex) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more