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

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, V, P> Db_<K, V, P> where
    P: BTreePage<K, V>,
    K: ?Sized,
    V: ?Sized
[src]

pub fn from_page(db: u64) -> Db_<K, V, P>[src]

Load a database from a page offset.

Trait Implementations

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

Auto Trait Implementations

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

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

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

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.