#[repr(transparent)]pub struct Page {
base: VirtualAddress<PAGE_SIZE>,
}
Expand description
A memory page
Fields§
§base: VirtualAddress<PAGE_SIZE>
Implementations§
Source§impl Page
impl Page
1.0.0 (const: 1.0.0) · Sourcepub const fn as_ptr(&self) -> *mut u8
pub const fn as_ptr(&self) -> *mut u8
Converts a Page
into a raw pointer pointing to the first address within the page
1.0.0 (const: 1.0.0) · Sourcepub const fn new(base: VirtualAddress<PAGE_SIZE>) -> Self
pub const fn new(base: VirtualAddress<PAGE_SIZE>) -> Self
Creates a Page
using base
as the first address within it
1.0.0 (const: 1.0.0) · Sourcepub const fn start(&self) -> VirtualAddress<PAGE_SIZE>
pub const fn start(&self) -> VirtualAddress<PAGE_SIZE>
Returns the first address within the Page
1.0.0 (const: 1.0.0) · Sourcepub const fn end(&self) -> VirtualAddress<PAGE_SIZE>
pub const fn end(&self) -> VirtualAddress<PAGE_SIZE>
Returns the address one after the end of the Page
Trait Implementations§
1.0.0 · Source§impl Ord for Page
impl Ord for Page
1.0.0 · Source§impl PartialOrd for Page
impl PartialOrd for Page
1.0.0 · Source§impl Step for Page
impl Step for Page
Source§fn steps_between(start: &Self, end: &Self) -> (usize, Option<usize>)
fn steps_between(start: &Self, end: &Self) -> (usize, Option<usize>)
🔬This is a nightly-only experimental API. (
step_trait
#42168)Returns the bounds on the number of successor steps required to get from
start
to end
like [Iterator::size_hint()
][Iterator::size_hint()]. Read moreSource§fn forward_checked(start: Self, count: usize) -> Option<Self>
fn forward_checked(start: Self, count: usize) -> Option<Self>
🔬This is a nightly-only experimental API. (
step_trait
#42168)Source§fn backward_checked(start: Self, count: usize) -> Option<Self>
fn backward_checked(start: Self, count: usize) -> Option<Self>
🔬This is a nightly-only experimental API. (
step_trait
#42168)§fn forward(start: Self, count: usize) -> Self
fn forward(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
#42168)§unsafe fn forward_unchecked(start: Self, count: usize) -> Self
unsafe fn forward_unchecked(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
#42168)§fn backward(start: Self, count: usize) -> Self
fn backward(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
#42168)§unsafe fn backward_unchecked(start: Self, count: usize) -> Self
unsafe fn backward_unchecked(start: Self, count: usize) -> Self
🔬This is a nightly-only experimental API. (
step_trait
#42168)impl Address for Page
Available on non-crate feature
use_std
only.impl Copy for Page
impl Eq for Page
impl Sealed for Page
Available on non-crate feature
use_std
only.impl StructuralPartialEq for Page
Auto Trait Implementations§
impl Freeze for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnwindSafe for Page
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
#126799)