[][src]Struct sanakirja::Statistics

pub struct Statistics {
    pub free_pages: HashSet<u64>,
    pub bookkeeping_pages: Vec<u64>,
    pub total_pages: usize,
    pub reference_counts: HashMap<u64, u64>,
}

Statistics about the database, useful for debugging and benchmarking purposes.

Fields

free_pages: HashSet<u64>

Set of free pages inside the file (not including the free space at the end of the file)

bookkeeping_pages: Vec<u64>

"Bookkeeping" pages, i.e. pages that contain just a list of free pages.

total_pages: usize

Total number of pages in the file that are either used or free. Does not include the free space at the end of the file.

reference_counts: HashMap<u64, u64>

A clone of the reference-counting structure, with an RC value for each page. Pages with an RC strictly less than 2 are not included.

Trait Implementations

impl Clone for Statistics[src]

impl Debug for Statistics[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,