[−][src]Struct sanakirja::Db
A database is a skip list of (page offset, key, value).
Trait Implementations
impl<K: Clone + Representable, V: Clone + Representable> Clone for Db<K, V>
[src]
impl<K: Copy + Representable, V: Copy + Representable> Copy for Db<K, V>
[src]
impl<K: Debug + Representable, V: Debug + Representable> Debug for Db<K, V>
[src]
impl<K: Representable, V: Representable> Representable for Db<K, V>
[src]
pub fn alignment() -> Alignment
[src]
pub fn onpage_size(&self) -> u16
[src]
pub unsafe fn skip(p: *mut u8) -> *mut u8
[src]
pub unsafe fn write_value(&self, p: *mut u8)
[src]
pub unsafe fn read_value(p: *const u8) -> Self
[src]
pub 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
pub fn page_offsets(&self) -> Self::PageOffsets
[src]
pub fn drop_value<E: Borrow<Env<Exclusive>>, T, R: Rng>(
&self,
txn: &mut MutTxn<E, T>,
rng: &mut R
) -> Result<(), Error>
[src]
&self,
txn: &mut MutTxn<E, T>,
rng: &mut R
) -> Result<(), Error>
Auto Trait Implementations
impl<K, V> RefUnwindSafe for Db<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
[src]
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Db<K, V> where
K: Send,
V: Send,
[src]
K: Send,
V: Send,
impl<K, V> Sync for Db<K, V> where
K: Sync,
V: Sync,
[src]
K: Sync,
V: Sync,
impl<K, V> Unpin for Db<K, V> where
K: Unpin,
V: Unpin,
[src]
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Db<K, V> where
K: UnwindSafe,
V: UnwindSafe,
[src]
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,