Struct x86_64::structures::paging::page_table::PageTableIndex
source · pub struct PageTableIndex(/* private fields */);
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§
Trait Implementations§
source§impl Clone for PageTableIndex
impl Clone for PageTableIndex
source§fn clone(&self) -> PageTableIndex
fn clone(&self) -> PageTableIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PageTableIndex
impl Debug for PageTableIndex
source§impl From<PageTableIndex> for u16
impl From<PageTableIndex> for u16
source§fn from(index: PageTableIndex) -> Self
fn from(index: PageTableIndex) -> Self
Converts to this type from the input type.
source§impl From<PageTableIndex> for u32
impl From<PageTableIndex> for u32
source§fn from(index: PageTableIndex) -> Self
fn from(index: PageTableIndex) -> Self
Converts to this type from the input type.
source§impl From<PageTableIndex> for u64
impl From<PageTableIndex> for u64
source§fn from(index: PageTableIndex) -> Self
fn from(index: PageTableIndex) -> Self
Converts to this type from the input type.
source§impl From<PageTableIndex> for usize
impl From<PageTableIndex> for usize
source§fn from(index: PageTableIndex) -> Self
fn from(index: PageTableIndex) -> Self
Converts to this type from the input type.
source§impl Hash for PageTableIndex
impl Hash for PageTableIndex
source§impl Index<PageTableIndex> for PageTable
impl Index<PageTableIndex> for PageTable
§type Output = PageTableEntry
type Output = PageTableEntry
The returned type after indexing.
source§impl IndexMut<PageTableIndex> for PageTable
impl IndexMut<PageTableIndex> for PageTable
source§impl Ord for PageTableIndex
impl Ord for PageTableIndex
source§fn cmp(&self, other: &PageTableIndex) -> Ordering
fn cmp(&self, other: &PageTableIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PageTableIndex
impl PartialEq for PageTableIndex
source§fn 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 ==
.source§impl PartialOrd for PageTableIndex
impl PartialOrd for PageTableIndex
source§fn partial_cmp(&self, other: &PageTableIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &PageTableIndex) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Step for PageTableIndex
Available on crate feature step_trait
only.
impl Step for PageTableIndex
Available on crate feature
step_trait
only.source§fn steps_between(start: &Self, end: &Self) -> Option<usize>
fn steps_between(start: &Self, end: &Self) -> Option<usize>
🔬This is a nightly-only experimental API. (
step_trait
)source§fn forward_checked(start: Self, count: usize) -> Option<Self>
fn forward_checked(start: Self, count: usize) -> Option<Self>
🔬This is a nightly-only experimental API. (
step_trait
)source§fn backward_checked(start: Self, count: usize) -> Option<Self>
fn backward_checked(start: Self, count: usize) -> Option<Self>
🔬This is a nightly-only experimental API. (
step_trait
)source§fn forward(start: Self, count: usize) -> Self
fn forward(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
)source§unsafe fn forward_unchecked(start: Self, count: usize) -> Self
unsafe fn forward_unchecked(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
)source§fn backward(start: Self, count: usize) -> Self
fn backward(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
)source§unsafe fn backward_unchecked(start: Self, count: usize) -> Self
unsafe fn backward_unchecked(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
)impl Copy for PageTableIndex
impl Eq for PageTableIndex
impl StructuralPartialEq for PageTableIndex
Auto Trait Implementations§
impl Freeze for PageTableIndex
impl RefUnwindSafe for PageTableIndex
impl Send for PageTableIndex
impl Sync for PageTableIndex
impl Unpin for PageTableIndex
impl UnwindSafe for PageTableIndex
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more