[][src]Struct x86_64::structures::paging::page_table::PageOffset

pub struct PageOffset(_);

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

impl PageOffset[src]

pub fn new(offset: u16) -> Self[src]

Creates a new offset from the given u16. Panics if the passed value is >=4096.

pub const fn new_truncate(offset: u16) -> Self[src]

Creates a new offset from the given u16. Throws away bits if the value is >=4096.

Trait Implementations

impl Clone for PageOffset[src]

impl Copy for PageOffset[src]

impl Debug for PageOffset[src]

impl Eq for PageOffset[src]

impl From<PageOffset> for u16[src]

impl From<PageOffset> for u32[src]

impl From<PageOffset> for u64[src]

impl From<PageOffset> for usize[src]

impl Ord for PageOffset[src]

impl PartialEq<PageOffset> for PageOffset[src]

impl PartialOrd<PageOffset> for PageOffset[src]

impl StructuralEq for PageOffset[src]

impl StructuralPartialEq for PageOffset[src]

Auto Trait Implementations

impl Send for PageOffset

impl Sync for PageOffset

impl Unpin for PageOffset

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.