pub struct PageOffset(/* private fields */);
Expand description
A 12-bit offset into a 4KiB Page.
This type is returned by the VirtAddr::page_offset
method.
Guaranteed to only ever contain 0..4096.
Implementations§
Source§impl PageOffset
impl PageOffset
Trait Implementations§
Source§impl Clone for PageOffset
impl Clone for PageOffset
Source§fn clone(&self) -> PageOffset
fn clone(&self) -> PageOffset
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 PageOffset
impl Debug for PageOffset
Source§impl From<PageOffset> for u16
impl From<PageOffset> for u16
Source§fn from(offset: PageOffset) -> Self
fn from(offset: PageOffset) -> Self
Converts to this type from the input type.
Source§impl From<PageOffset> for u32
impl From<PageOffset> for u32
Source§fn from(offset: PageOffset) -> Self
fn from(offset: PageOffset) -> Self
Converts to this type from the input type.
Source§impl From<PageOffset> for u64
impl From<PageOffset> for u64
Source§fn from(offset: PageOffset) -> Self
fn from(offset: PageOffset) -> Self
Converts to this type from the input type.
Source§impl From<PageOffset> for usize
impl From<PageOffset> for usize
Source§fn from(offset: PageOffset) -> Self
fn from(offset: PageOffset) -> Self
Converts to this type from the input type.
Source§impl Hash for PageOffset
impl Hash for PageOffset
Source§impl Ord for PageOffset
impl Ord for PageOffset
Source§fn cmp(&self, other: &PageOffset) -> Ordering
fn cmp(&self, other: &PageOffset) -> 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 PageOffset
impl PartialEq for PageOffset
Source§impl PartialOrd for PageOffset
impl PartialOrd for PageOffset
impl Copy for PageOffset
impl Eq for PageOffset
impl StructuralPartialEq for PageOffset
Auto Trait Implementations§
impl Freeze for PageOffset
impl RefUnwindSafe for PageOffset
impl Send for PageOffset
impl Sync for PageOffset
impl Unpin for PageOffset
impl UnwindSafe for PageOffset
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