Function sanakirja_core::btree::get

source ·
pub fn get<'a, T: LoadPage, K: Storable + ?Sized, V: Storable + ?Sized, P: BTreePage<K, V>>(
    txn: &'a T,
    db: &Db_<K, V, P>,
    k: &K,
    v: Option<&V>
) -> Result<Option<(&'a K, &'a V)>, T::Error>
Expand description

Get the first entry of a database greater than or equal to k (or to (k, v) if v.is_some()), and return true if this entry is shared with another structure (i.e. the RC of at least one page along a path to the entry is at least 2).