Struct sanakirja::btree::Db_[][src]

pub struct Db_<K, V, P> where
    P: BTreePage<K, V>,
    K: ?Sized,
    V: ?Sized
{ pub db: u64, pub k: PhantomData<K>, pub v: PhantomData<V>, pub p: PhantomData<P>, }
Expand description

A database, which is essentially just a page offset along with markers.

Fields

db: u64k: PhantomData<K>v: PhantomData<V>p: PhantomData<P>

Implementations

Load a database from a page offset.

Trait Implementations

Formats the value using the given formatter. Read more

An iterator over the offsets to pages contained in this value. Only values from this crate can generate non-empty iterators, but combined values (like tuples) must chain the iterators returned by method page_offsets. Read more

If this value is an offset to another page at offset offset, return Some(offset). Return None else. Read more

If this value is an offset to another page at offset offset, return Some(offset). Return None else. Read more

This is required for B trees, not necessarily for other structures. The default implementation panics. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.