Function sanakirja::btree::put

source ·
pub fn put<T, K, V, P>(
    txn: &mut T,
    db: &mut Db_<K, V, P>,
    key: &K,
    value: &V
) -> Result<bool, <T as LoadPage>::Error>
where T: AllocPage, K: Storable + ?Sized, V: Storable + ?Sized, P: BTreeMutPage<K, V>,
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.