Trait ckb_rocksdb::ops::Delete
source · pub trait Delete<W> {
// Required method
fn delete_full<K>(&self, key: K, writeopts: Option<&W>) -> Result<(), Error>
where K: AsRef<[u8]>;
// Provided methods
fn delete<K>(&self, key: K) -> Result<(), Error>
where K: AsRef<[u8]> { ... }
fn delete_opt<K>(&self, key: K, writeopts: &W) -> Result<(), Error>
where K: AsRef<[u8]> { ... }
}
Required Methods§
fn delete_full<K>(&self, key: K, writeopts: Option<&W>) -> Result<(), Error>where K: AsRef<[u8]>,
Provided Methods§
sourcefn delete<K>(&self, key: K) -> Result<(), Error>where
K: AsRef<[u8]>,
fn delete<K>(&self, key: K) -> Result<(), Error>where K: AsRef<[u8]>,
Remove the database entry for key.
Returns an error if the key was not found.
fn delete_opt<K>(&self, key: K, writeopts: &W) -> Result<(), Error>where K: AsRef<[u8]>,
Object Safety§
This trait is not object safe.