pub struct PageNumber<Meta: VmMeta, S: Space>(/* private fields */);
Expand description
页号。
Implementations§
Source§impl<Meta: VmMeta, S: Space> PageNumber<Meta, S>
impl<Meta: VmMeta, S: Space> PageNumber<Meta, S>
Source§impl<Meta: VmMeta> PageNumber<Meta, Physical>
impl<Meta: VmMeta> PageNumber<Meta, Physical>
Source§impl<Meta: VmMeta> PageNumber<Meta, Virtual>
impl<Meta: VmMeta> PageNumber<Meta, Virtual>
Sourcepub fn vaddr_range(self, level: usize) -> Range<VAddr<Meta>>
pub fn vaddr_range(self, level: usize) -> Range<VAddr<Meta>>
包含这个虚页的 level
级页表容纳的虚页范围。
Sourcepub fn align_level(self) -> usize
pub fn align_level(self) -> usize
虚页的对齐级别,使虚页在页表中序号为 0 的最高等级页表的级别。
Trait Implementations§
Source§impl<Meta: VmMeta, S: Space> AddAssign<usize> for PageNumber<Meta, S>
impl<Meta: VmMeta, S: Space> AddAssign<usize> for PageNumber<Meta, S>
Source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the
+=
operation. Read moreSource§impl<Meta: Clone + VmMeta, S: Clone + Space> Clone for PageNumber<Meta, S>
impl<Meta: Clone + VmMeta, S: Clone + Space> Clone for PageNumber<Meta, S>
Source§fn clone(&self) -> PageNumber<Meta, S>
fn clone(&self) -> PageNumber<Meta, S>
Returns a duplicate 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<Meta: Ord + VmMeta, S: Ord + Space> Ord for PageNumber<Meta, S>
impl<Meta: Ord + VmMeta, S: Ord + Space> Ord for PageNumber<Meta, S>
Source§fn cmp(&self, other: &PageNumber<Meta, S>) -> Ordering
fn cmp(&self, other: &PageNumber<Meta, S>) -> 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<Meta: PartialOrd + VmMeta, S: PartialOrd + Space> PartialOrd for PageNumber<Meta, S>
impl<Meta: PartialOrd + VmMeta, S: PartialOrd + Space> PartialOrd for PageNumber<Meta, S>
impl<Meta: Copy + VmMeta, S: Copy + Space> Copy for PageNumber<Meta, S>
impl<Meta: Eq + VmMeta, S: Eq + Space> Eq for PageNumber<Meta, S>
impl<Meta: VmMeta, S: Space> StructuralPartialEq for PageNumber<Meta, S>
Auto Trait Implementations§
impl<Meta, S> Freeze for PageNumber<Meta, S>
impl<Meta, S> RefUnwindSafe for PageNumber<Meta, S>where
Meta: RefUnwindSafe,
S: RefUnwindSafe,
impl<Meta, S> Send for PageNumber<Meta, S>
impl<Meta, S> Sync for PageNumber<Meta, S>
impl<Meta, S> Unpin for PageNumber<Meta, S>
impl<Meta, S> UnwindSafe for PageNumber<Meta, S>where
Meta: UnwindSafe,
S: UnwindSafe,
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