pub struct PRef(/* private fields */);
Expand description
Pointer to persistent data. Limited to 2^48
Implementations§
Source§impl PRef
impl PRef
Sourcepub fn page_number(&self) -> u64
pub fn page_number(&self) -> u64
compute page number of an pref
Sourcepub fn in_page_pos(&self) -> usize
pub fn in_page_pos(&self) -> usize
position within the pref’s page
Sourcepub fn pages_until(&self, other: PRef) -> usize
pub fn pages_until(&self, other: PRef) -> usize
number of pages from this until an other
Trait Implementations§
Source§impl AddAssign<u64> for PRef
impl AddAssign<u64> for PRef
Source§fn add_assign(&mut self, rhs: u64)
fn add_assign(&mut self, rhs: u64)
Performs the
+=
operation. Read moreSource§impl Ord for PRef
impl Ord for PRef
Source§impl PartialOrd for PRef
impl PartialOrd for PRef
Source§impl SubAssign<u64> for PRef
impl SubAssign<u64> for PRef
Source§fn sub_assign(&mut self, rhs: u64)
fn sub_assign(&mut self, rhs: u64)
Performs the
-=
operation. Read moreimpl Copy for PRef
impl Eq for PRef
impl StructuralPartialEq for PRef
Auto Trait Implementations§
impl Freeze for PRef
impl RefUnwindSafe for PRef
impl Send for PRef
impl Sync for PRef
impl Unpin for PRef
impl UnwindSafe for PRef
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