Struct page_table::PageNumber
source · [−]Expand description
页号。
Implementations
sourceimpl<Meta: VmMeta, S: Space> PageNumber<Meta, S>
impl<Meta: VmMeta, S: Space> PageNumber<Meta, S>
sourceimpl<Meta: VmMeta> PageNumber<Meta, Physical>
impl<Meta: VmMeta> PageNumber<Meta, Physical>
sourceimpl<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
sourceimpl<Meta: VmMeta, S: Space> AddAssign<usize> for PageNumber<Meta, S>
impl<Meta: VmMeta, S: Space> AddAssign<usize> for PageNumber<Meta, S>
sourcefn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the += operation. Read more
sourceimpl<Meta: Clone + VmMeta, S: Clone + Space> Clone for PageNumber<Meta, S>
impl<Meta: Clone + VmMeta, S: Clone + Space> Clone for PageNumber<Meta, S>
sourcefn clone(&self) -> PageNumber<Meta, S>
fn clone(&self) -> PageNumber<Meta, S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<Meta: Ord + VmMeta, S: Ord + Space> Ord for PageNumber<Meta, S>
impl<Meta: Ord + VmMeta, S: Ord + Space> Ord for PageNumber<Meta, S>
sourcefn cmp(&self, other: &PageNumber<Meta, S>) -> Ordering
fn cmp(&self, other: &PageNumber<Meta, S>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<Meta: PartialEq + VmMeta, S: PartialEq + Space> PartialEq<PageNumber<Meta, S>> for PageNumber<Meta, S>
impl<Meta: PartialEq + VmMeta, S: PartialEq + Space> PartialEq<PageNumber<Meta, S>> for PageNumber<Meta, S>
sourcefn eq(&self, other: &PageNumber<Meta, S>) -> bool
fn eq(&self, other: &PageNumber<Meta, S>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl<Meta: PartialOrd + VmMeta, S: PartialOrd + Space> PartialOrd<PageNumber<Meta, S>> for PageNumber<Meta, S>
impl<Meta: PartialOrd + VmMeta, S: PartialOrd + Space> PartialOrd<PageNumber<Meta, S>> for PageNumber<Meta, S>
sourcefn partial_cmp(&self, other: &PageNumber<Meta, S>) -> Option<Ordering>
fn partial_cmp(&self, other: &PageNumber<Meta, S>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
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> StructuralEq for PageNumber<Meta, S>
impl<Meta: VmMeta, S: Space> StructuralPartialEq for PageNumber<Meta, S>
Auto Trait Implementations
impl<Meta, S> RefUnwindSafe for PageNumber<Meta, S> where
Meta: RefUnwindSafe,
S: RefUnwindSafe,
impl<Meta, S> Send for PageNumber<Meta, S> where
Meta: Send,
S: Send,
impl<Meta, S> Sync for PageNumber<Meta, S> where
Meta: Sync,
S: Sync,
impl<Meta, S> Unpin for PageNumber<Meta, S> where
Meta: Unpin,
S: Unpin,
impl<Meta, S> UnwindSafe for PageNumber<Meta, S> where
Meta: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more