Function sanakirja_core::btree::put::put
source · pub fn put<T: AllocPage, K: Storable + ?Sized, V: Storable + ?Sized, P: BTreeMutPage<K, V>>(
txn: &mut T,
db: &mut Db_<K, V, P>,
key: &K,
value: &V
) -> Result<bool, T::Error>
Expand description
Insert an entry into a database, returning false
if and only if
the exact same entry (key and value) was already in the
database.