Function sdb::btree::put[]

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
    K: Storable + Debug + ?Sized,
    V: Storable + Debug + ?Sized,
    T: AllocPage,
    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.