Struct x86_64::structures::paging::page_table::PageTableIndex
source · [−]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
sourceimpl PageTableIndex
impl PageTableIndex
Trait Implementations
sourceimpl Clone for PageTableIndex
impl Clone for PageTableIndex
sourcefn clone(&self) -> PageTableIndex
fn clone(&self) -> PageTableIndex
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PageTableIndex
impl Debug for PageTableIndex
sourceimpl From<PageTableIndex> for u16
impl From<PageTableIndex> for u16
sourcefn from(index: PageTableIndex) -> Self
fn from(index: PageTableIndex) -> Self
Converts to this type from the input type.
sourceimpl From<PageTableIndex> for u32
impl From<PageTableIndex> for u32
sourcefn from(index: PageTableIndex) -> Self
fn from(index: PageTableIndex) -> Self
Converts to this type from the input type.
sourceimpl From<PageTableIndex> for u64
impl From<PageTableIndex> for u64
sourcefn from(index: PageTableIndex) -> Self
fn from(index: PageTableIndex) -> Self
Converts to this type from the input type.
sourceimpl From<PageTableIndex> for usize
impl From<PageTableIndex> for usize
sourcefn from(index: PageTableIndex) -> Self
fn from(index: PageTableIndex) -> Self
Converts to this type from the input type.
sourceimpl Hash for PageTableIndex
impl Hash for PageTableIndex
sourceimpl Index<PageTableIndex> for PageTable
impl Index<PageTableIndex> for PageTable
type Output = PageTableEntry
type Output = PageTableEntry
The returned type after indexing.
sourcefn index(&self, index: PageTableIndex) -> &Self::Output
fn index(&self, index: PageTableIndex) -> &Self::Output
Performs the indexing (container[index]
) operation. Read more
sourceimpl IndexMut<PageTableIndex> for PageTable
impl IndexMut<PageTableIndex> for PageTable
sourcefn 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
sourceimpl Ord for PageTableIndex
impl Ord for PageTableIndex
sourceimpl PartialEq<PageTableIndex> for PageTableIndex
impl PartialEq<PageTableIndex> for PageTableIndex
sourcefn eq(&self, other: &PageTableIndex) -> bool
fn eq(&self, other: &PageTableIndex) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PageTableIndex) -> bool
fn ne(&self, other: &PageTableIndex) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PageTableIndex> for PageTableIndex
impl PartialOrd<PageTableIndex> for PageTableIndex
sourcefn partial_cmp(&self, other: &PageTableIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &PageTableIndex) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for PageTableIndex
impl Eq for PageTableIndex
impl StructuralEq for PageTableIndex
impl StructuralPartialEq for PageTableIndex
Auto Trait Implementations
impl RefUnwindSafe for PageTableIndex
impl Send for PageTableIndex
impl Sync for PageTableIndex
impl Unpin for PageTableIndex
impl UnwindSafe for PageTableIndex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more