Struct os::mm::address::PhysPageNum
source · pub struct PhysPageNum(pub usize);
Expand description
physical page number
Tuple Fields§
§0: usize
Implementations§
source§impl PhysPageNum
impl PhysPageNum
pub fn get_pte_array(&self) -> &'static mut [PageTableEntry]
pub fn get_bytes_array(&self) -> &'static mut [u8]
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§fn eq(&self, other: &PhysPageNum) -> bool
fn eq(&self, other: &PhysPageNum) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PhysPageNum
impl PartialOrd for PhysPageNum
source§fn partial_cmp(&self, other: &PhysPageNum) -> Option<Ordering>
fn partial_cmp(&self, other: &PhysPageNum) -> 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 moreimpl Copy for PhysPageNum
impl Eq for PhysPageNum
impl StructuralEq for PhysPageNum
impl StructuralPartialEq for PhysPageNum
Auto Trait Implementations§
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