Struct sanakirja_core::btree::Db_[][src]

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

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

Fields

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

Implementations

impl<K: ?Sized, V: ?Sized, P: BTreePage<K, V>> Db_<K, V, P>[src]

pub fn from_page(db: u64) -> Self[src]

Load a database from a page offset.

Trait Implementations

impl<K: Debug + ?Sized, V: Debug + ?Sized, P: Debug + BTreePage<K, V>> Debug for Db_<K, V, P>[src]

Auto Trait Implementations

impl<K: ?Sized, V: ?Sized, P> Send for Db_<K, V, P> where
    K: Send,
    P: Send,
    V: Send

impl<K: ?Sized, V: ?Sized, P> Sync for Db_<K, V, P> where
    K: Sync,
    P: Sync,
    V: Sync

impl<K: ?Sized, V: ?Sized, P> Unpin for Db_<K, V, P> where
    K: Unpin,
    P: Unpin,
    V: Unpin

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, 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.