Struct x86_64::structures::paging::page_table::PageOffset
source · [−]pub struct PageOffset(_);
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
sourceimpl PageOffset
impl PageOffset
Trait Implementations
sourceimpl Clone for PageOffset
impl Clone for PageOffset
sourcefn clone(&self) -> PageOffset
fn clone(&self) -> PageOffset
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 Debug for PageOffset
impl Debug for PageOffset
sourceimpl From<PageOffset> for u16
impl From<PageOffset> for u16
sourcefn from(offset: PageOffset) -> Self
fn from(offset: PageOffset) -> Self
Converts to this type from the input type.
sourceimpl From<PageOffset> for u32
impl From<PageOffset> for u32
sourcefn from(offset: PageOffset) -> Self
fn from(offset: PageOffset) -> Self
Converts to this type from the input type.
sourceimpl From<PageOffset> for u64
impl From<PageOffset> for u64
sourcefn from(offset: PageOffset) -> Self
fn from(offset: PageOffset) -> Self
Converts to this type from the input type.
sourceimpl From<PageOffset> for usize
impl From<PageOffset> for usize
sourcefn from(offset: PageOffset) -> Self
fn from(offset: PageOffset) -> Self
Converts to this type from the input type.
sourceimpl Hash for PageOffset
impl Hash for PageOffset
sourceimpl Ord for PageOffset
impl Ord for PageOffset
sourceimpl PartialEq<PageOffset> for PageOffset
impl PartialEq<PageOffset> for PageOffset
sourcefn eq(&self, other: &PageOffset) -> bool
fn eq(&self, other: &PageOffset) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PageOffset) -> bool
fn ne(&self, other: &PageOffset) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PageOffset> for PageOffset
impl PartialOrd<PageOffset> for PageOffset
sourcefn partial_cmp(&self, other: &PageOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &PageOffset) -> 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 Copy for PageOffset
impl Eq for PageOffset
impl StructuralEq for PageOffset
impl StructuralPartialEq for PageOffset
Auto Trait Implementations
impl RefUnwindSafe for PageOffset
impl Send for PageOffset
impl Sync for PageOffset
impl Unpin for PageOffset
impl UnwindSafe for PageOffset
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