Struct os::mm::address::VirtPageNum
source · #[repr(C)]pub struct VirtPageNum(pub usize);
Tuple Fields§
§0: usize
Implementations§
Trait Implementations§
source§impl Clone for VirtPageNum
impl Clone for VirtPageNum
source§fn clone(&self) -> VirtPageNum
fn clone(&self) -> VirtPageNum
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 VirtPageNum
impl Debug for VirtPageNum
source§impl From<VirtAddr> for VirtPageNum
impl From<VirtAddr> for VirtPageNum
source§impl From<VirtPageNum> for VirtAddr
impl From<VirtPageNum> for VirtAddr
source§fn from(v: VirtPageNum) -> Self
fn from(v: VirtPageNum) -> Self
Converts to this type from the input type.
source§impl From<VirtPageNum> for usize
impl From<VirtPageNum> for usize
source§fn from(v: VirtPageNum) -> Self
fn from(v: VirtPageNum) -> Self
Converts to this type from the input type.
source§impl From<usize> for VirtPageNum
impl From<usize> for VirtPageNum
source§impl Ord for VirtPageNum
impl Ord for VirtPageNum
source§fn cmp(&self, other: &VirtPageNum) -> Ordering
fn cmp(&self, other: &VirtPageNum) -> 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 VirtPageNum
impl PartialEq for VirtPageNum
source§fn eq(&self, other: &VirtPageNum) -> bool
fn eq(&self, other: &VirtPageNum) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VirtPageNum
impl PartialOrd for VirtPageNum
source§fn partial_cmp(&self, other: &VirtPageNum) -> Option<Ordering>
fn partial_cmp(&self, other: &VirtPageNum) -> 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 VirtPageNum
impl Eq for VirtPageNum
impl StructuralEq for VirtPageNum
impl StructuralPartialEq for VirtPageNum
Auto Trait Implementations§
impl RefUnwindSafe for VirtPageNum
impl Send for VirtPageNum
impl Sync for VirtPageNum
impl Unpin for VirtPageNum
impl UnwindSafe for VirtPageNum
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