Function sanakirja::btree::get_shared[][src]

pub fn get_shared<T, K, V, P>(
    txn: &'a T,
    db: &Db_<K, V, P>,
    k: &K,
    v: Option<&V>
) -> Result<Option<(&'a K, &'a V, bool)>, <T as LoadPage>::Error> where
    T: LoadPage,
    K: Storable + ?Sized,
    V: Storable + ?Sized,
    P: BTreePage<K, V>, 
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).