pub struct DbHeader {
pub page_count: u32,
pub schema_root_page: u32,
pub format_version: u16,
pub freelist_head: u32,
}Expand description
Parsed header. page_count includes page 0 itself.
Fields§
§page_count: u32§schema_root_page: u32§format_version: u16On-disk format version this header carries. Tracked explicitly so save can preserve a v4 file as v4 (no FTS, no freelist), bump it to v5 (FTS), or bump it to v6 (freelist), per the on-demand promotion rules.
freelist_head: u32First page of the persisted free-page list, or 0 if the list
is empty. The freelist is a chain of trunk pages; each trunk
records up to ~1018 free leaf-page numbers. v4/v5 files don’t
carry a freelist on disk — decode_header returns 0 for them.
Trait Implementations§
impl Copy for DbHeader
impl Eq for DbHeader
impl StructuralPartialEq for DbHeader
Auto Trait Implementations§
impl Freeze for DbHeader
impl RefUnwindSafe for DbHeader
impl Send for DbHeader
impl Sync for DbHeader
impl Unpin for DbHeader
impl UnsafeUnpin for DbHeader
impl UnwindSafe for DbHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.