[−][src]Struct sanakirja::Db
A database is a skip list of (page offset, key, value).
Trait Implementations
impl<K: Representable, V: Representable> Representable for Db<K, V>
[src]
fn alignment() -> Alignment
[src]
fn onpage_size(&self) -> u16
[src]
unsafe fn skip(p: *mut u8) -> *mut u8
[src]
unsafe fn write_value(&self, p: *mut u8)
[src]
unsafe fn read_value(p: *const u8) -> Self
[src]
unsafe fn cmp_value<T: LoadPage>(&self, _: &T, x: Db<K, V>) -> Ordering
[src]
type PageOffsets = 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
. Read more
fn page_offsets(&self) -> Self::PageOffsets
[src]
fn drop_value<T, R: Rng>(
&self,
txn: &mut MutTxn<T>,
rng: &mut R
) -> Result<(), Error>
[src]
&self,
txn: &mut MutTxn<T>,
rng: &mut R
) -> Result<(), Error>
impl<K: Copy + Representable, V: Copy + Representable> Copy for Db<K, V>
[src]
impl<K: Clone + Representable, V: Clone + Representable> Clone for Db<K, V>
[src]
fn clone(&self) -> Db<K, V>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<K: Debug + Representable, V: Debug + Representable> Debug for Db<K, V>
[src]
Auto Trait Implementations
impl<K, V> Sync for Db<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Send for Db<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Unpin for Db<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> RefUnwindSafe for Db<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> UnwindSafe for Db<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,