Function sanakirja_core::btree::del::del
source · pub fn del<T: AllocPage + LoadPage, K: Storable + ?Sized + PartialEq, V: Storable + ?Sized + PartialEq, P: BTreeMutPage<K, V>>(
txn: &mut T,
db: &mut Db_<K, V, P>,
key: &K,
value: Option<&V>
) -> Result<bool, T::Error>
Expand description
If value
is None
, delete the first entry for key
from the
database, if present. Else, delete the entry for (key, value)
,
if present.