pub struct Pfn(/* private fields */);
Expand description
Strong type for a Page Frame Number.
§Examples
let pfn = Pfn::new(0x1337);
assert_eq!(pfn.gpa(), Gpa::new(0x1337000));
Implementations§
Trait Implementations§
Source§impl Ord for Pfn
impl Ord for Pfn
Source§impl PartialOrd for Pfn
impl PartialOrd for Pfn
impl Copy for Pfn
impl Eq for Pfn
impl StructuralPartialEq for Pfn
Auto Trait Implementations§
impl Freeze for Pfn
impl RefUnwindSafe for Pfn
impl Send for Pfn
impl Sync for Pfn
impl Unpin for Pfn
impl UnwindSafe for Pfn
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