pub struct RecordAddress {
pub page: Page,
pub offset: PageOffset,
}Expand description
The address of a record in the table registry, consisting of a page number and an offset within that page.
Fields§
§page: Page§offset: PageOffsetImplementations§
Source§impl RecordAddress
impl RecordAddress
Sourcepub fn new(page: Page, offset: PageOffset) -> Self
pub fn new(page: Page, offset: PageOffset) -> Self
Creates a new RecordAddress with the given page and offset.
Trait Implementations§
Source§impl Clone for RecordAddress
impl Clone for RecordAddress
impl Copy for RecordAddress
Source§impl Debug for RecordAddress
impl Debug for RecordAddress
Source§impl Encode for RecordAddress
impl Encode for RecordAddress
impl Eq for RecordAddress
Source§impl Ord for RecordAddress
impl Ord for RecordAddress
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RecordAddress
impl PartialEq for RecordAddress
Source§impl PartialOrd for RecordAddress
impl PartialOrd for RecordAddress
impl StructuralPartialEq for RecordAddress
Auto Trait Implementations§
impl Freeze for RecordAddress
impl RefUnwindSafe for RecordAddress
impl Send for RecordAddress
impl Sync for RecordAddress
impl Unpin for RecordAddress
impl UnsafeUnpin for RecordAddress
impl UnwindSafe for RecordAddress
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