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
Source§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§impl PartialOrd for PageTableIndex
impl PartialOrd for PageTableIndex
Source§impl Step for PageTableIndex
impl Step for PageTableIndex
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