[−][src]Struct mips::addr::Page
Methods
impl Page
[src]
pub fn of_addr(addr: VirtAddr) -> Self
[src]
pub fn of_vpn(vpn: usize) -> Self
[src]
pub fn start_address(&self) -> VirtAddr
[src]
pub fn p2_index(&self) -> usize
[src]
pub fn p1_index(&self) -> usize
[src]
pub fn number(&self) -> usize
[src]
pub fn from_page_table_indices(p2_index: usize, p1_index: usize) -> Self
[src]
Trait Implementations
impl PartialEq<Page> for Page
[src]
impl Eq for Page
[src]
impl Ord for Page
[src]
fn cmp(&self, other: &Page) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
🔬 This is a nightly-only experimental API. (
clamp
)Restrict a value to a certain interval. Read more
impl PartialOrd<Page> for Page
[src]
fn partial_cmp(&self, other: &Page) -> Option<Ordering>
[src]
fn lt(&self, other: &Page) -> bool
[src]
fn le(&self, other: &Page) -> bool
[src]
fn gt(&self, other: &Page) -> bool
[src]
fn ge(&self, other: &Page) -> bool
[src]
impl Copy for Page
[src]
impl Debug for Page
[src]
impl Clone for Page
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,