Struct sanakirja_core::btree::Db_
source · pub struct Db_<K: ?Sized, V: ?Sized, P: BTreePage<K, V>> {
pub db: NonZeroU64,
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: NonZeroU64
§k: PhantomData<K>
§v: PhantomData<V>
§p: PhantomData<P>
Implementations§
Trait Implementations§
source§impl<K: Debug + ?Sized, V: Debug + ?Sized, P: Debug + BTreePage<K, V>> Debug for Db_<K, V, P>
impl<K: Debug + ?Sized, V: Debug + ?Sized, P: Debug + BTreePage<K, V>> Debug for Db_<K, V, P>
source§impl<K: Storable, V: Storable, P: BTreePage<K, V> + Debug> Storable for Db_<K, V, P>
impl<K: Storable, V: Storable, P: BTreePage<K, V> + Debug> Storable for Db_<K, V, P>
§type PageReferences = Once<u64>
type PageReferences = Once<u64>
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
.source§fn page_references(&self) -> Self::PageReferences
fn page_references(&self) -> Self::PageReferences
If this value is an offset to another page at offset
offset
,
return Some(offset)
. Return None
else.Auto Trait Implementations§
impl<K: ?Sized, V: ?Sized, P> RefUnwindSafe for Db_<K, V, P>
impl<K: ?Sized, V: ?Sized, P> Send for Db_<K, V, P>
impl<K: ?Sized, V: ?Sized, P> Sync for Db_<K, V, P>
impl<K: ?Sized, V: ?Sized, P> Unpin for Db_<K, V, P>
impl<K: ?Sized, V: ?Sized, P> UnwindSafe for Db_<K, V, P>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more