#[repr(u8)]pub enum PageType {
TableLeaf = 2,
Overflow = 3,
InteriorNode = 4,
}Expand description
Identifies what kind of content a page holds.
Phase 3c retired the SchemaRoot tag (tag value 1) because the
schema catalog is now stored as a regular table (sqlrite_master)
with leaf pages. Tag 1 remains reserved so future variants don’t
alias it.
Variants§
TableLeaf = 2
Leaf page of a table — holds a slot directory and cells.
Overflow = 3
Continuation page carrying the spilled body of an oversized cell.
InteriorNode = 4
Interior B-Tree node — holds a slot directory of dividers pointing at child pages plus a rightmost-child pointer in the payload header.
Implementations§
Trait Implementations§
impl Copy for PageType
impl Eq for PageType
impl StructuralPartialEq for PageType
Auto Trait Implementations§
impl Freeze for PageType
impl RefUnwindSafe for PageType
impl Send for PageType
impl Sync for PageType
impl Unpin for PageType
impl UnsafeUnpin for PageType
impl UnwindSafe for PageType
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