Struct x86_64::structures::paging::page_table::PageOffset [−][src]
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
Creates a new offset from the given u16
. Panics if the passed value is >=4096.
Creates a new offset from the given u16
. Throws away bits if the value is >=4096.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more