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