data_bucket 0.3.13

DataBucket is container for WorkTable's data
Documentation
use derive_more::Display;
use rkyv::{Archive, Deserialize, Serialize};

#[derive(
    Archive,
    Copy,
    Clone,
    Deserialize,
    Debug,
    Display,
    Eq,
    Hash,
    Ord,
    PartialEq,
    PartialOrd,
    Serialize,
)]
#[repr(u16)]
pub enum PageType {
    /// Header for empty `Page`. Used in case page is just allocated.
    Empty = 0,
    /// Space header `Page` type.
    SpaceInfo = 1,
    /// Table data `Page` type.
    Data = 2,
    /// Index `Page` type.
    Index = 3,
    /// Index for unsized type's `Page` type.
    IndexUnsized = 30,
    /// Index's table of contests `Page` type. Is used to determine node's `PageId`.
    IndexTableOfContents = 31,
}