pub struct Page { /* private fields */ }Expand description
One page of the file, decoded.
Implementations§
Source§impl Page
impl Page
Sourcepub fn bytes(&self) -> &[u8] ⓘ
pub fn bytes(&self) -> &[u8] ⓘ
The decoded bytes. The last four are the checksum of the stored page.
Sourcepub fn stored_number(&self) -> u32
pub fn stored_number(&self) -> u32
The page number in the header. It differs from Self::number on
checkpoint copies and on pages that were never written. The first page
of a file has no header: this and the other fields of one are some of
its own bytes there.
Sourcepub fn table_id(&self) -> Option<u32>
pub fn table_id(&self) -> Option<u32>
The identifier of the table that a page of rows belongs to.
Sourcepub fn slot_count(&self) -> Option<u16>
pub fn slot_count(&self) -> Option<u16>
The number of slots on a page of rows, empty ones included.
Trait Implementations§
impl Eq for Page
impl StructuralPartialEq for Page
Auto Trait Implementations§
impl Forget for Page
impl Freeze for Page
impl Move for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
impl UnwindSafe for Page
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