pub struct PhysPageNum(pub usize);
Expand description
physical page number
Tuple Fields§
§0: usize
Implementations§
Source§impl PhysPageNum
impl PhysPageNum
Sourcepub fn get_pte_array(&self) -> &'static mut [PageTableEntry]
pub fn get_pte_array(&self) -> &'static mut [PageTableEntry]
Get PageTableEntry
on PhysPageNum
Sourcepub fn get_bytes_array(&self) -> &'static mut [u8]
pub fn get_bytes_array(&self) -> &'static mut [u8]
Sourcepub fn get_mut<T>(&self) -> &'static mut T
pub fn get_mut<T>(&self) -> &'static mut T
Trait Implementations§
Source§impl Clone for PhysPageNum
impl Clone for PhysPageNum
Source§fn clone(&self) -> PhysPageNum
fn clone(&self) -> PhysPageNum
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 PhysPageNum
impl Debug for PhysPageNum
Source§impl From<PhysAddr> for PhysPageNum
impl From<PhysAddr> for PhysPageNum
Source§impl From<PhysPageNum> for PhysAddr
impl From<PhysPageNum> for PhysAddr
Source§fn from(v: PhysPageNum) -> Self
fn from(v: PhysPageNum) -> Self
Converts to this type from the input type.
Source§impl From<PhysPageNum> for usize
impl From<PhysPageNum> for usize
Source§fn from(v: PhysPageNum) -> Self
fn from(v: PhysPageNum) -> Self
Converts to this type from the input type.
Source§impl From<usize> for PhysPageNum
impl From<usize> for PhysPageNum
Source§impl Ord for PhysPageNum
impl Ord for PhysPageNum
Source§fn cmp(&self, other: &PhysPageNum) -> Ordering
fn cmp(&self, other: &PhysPageNum) -> 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 PhysPageNum
impl PartialEq for PhysPageNum
Source§impl PartialOrd for PhysPageNum
impl PartialOrd for PhysPageNum
impl Copy for PhysPageNum
impl Eq for PhysPageNum
impl StructuralPartialEq for PhysPageNum
Auto Trait Implementations§
impl Freeze for PhysPageNum
impl RefUnwindSafe for PhysPageNum
impl Send for PhysPageNum
impl Sync for PhysPageNum
impl Unpin for PhysPageNum
impl UnwindSafe for PhysPageNum
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