pub struct PageTableIndex(/* private fields */);Expand description
An index into a page table
Implementations§
Source§impl PageTableIndex
impl PageTableIndex
Sourcepub const fn new_truncate(index: u16) -> Self
pub const fn new_truncate(index: u16) -> Self
Create a new index, truncates if >= 512
Trait Implementations§
Source§impl Clone for PageTableIndex
impl Clone for PageTableIndex
Source§fn clone(&self) -> PageTableIndex
fn clone(&self) -> PageTableIndex
Returns a duplicate of the value. Read more
1.0.0§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 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 From<u16> for PageTableIndex
impl From<u16> for PageTableIndex
Source§impl From<usize> for PageTableIndex
impl From<usize> 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§fn index(&self, index: PageTableIndex) -> &Self::Output
fn index(&self, index: PageTableIndex) -> &Self::Output
Performs the indexing (
container[index]) operation. Read moreSource§impl IndexMut<PageTableIndex> for PageTable
impl IndexMut<PageTableIndex> for PageTable
Source§fn 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 moreSource§impl PartialEq for PageTableIndex
impl PartialEq for PageTableIndex
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)