pub trait Get<R> {
// Required method
fn get_full<K: AsRef<[u8]>>(
&self,
key: K,
readopts: Option<&R>,
) -> Result<Option<DBVector>, Error>;
// Provided methods
fn get<K: AsRef<[u8]>>(&self, key: K) -> Result<Option<DBVector>, Error> { ... }
fn get_opt<K: AsRef<[u8]>>(
&self,
key: K,
readopts: &R,
) -> Result<Option<DBVector>, Error> { ... }
}
Required Methods§
fn get_full<K: AsRef<[u8]>>( &self, key: K, readopts: Option<&R>, ) -> Result<Option<DBVector>, Error>
Provided Methods§
Sourcefn get<K: AsRef<[u8]>>(&self, key: K) -> Result<Option<DBVector>, Error>
fn get<K: AsRef<[u8]>>(&self, key: K) -> Result<Option<DBVector>, Error>
Return the bytes associated with a key value
fn get_opt<K: AsRef<[u8]>>( &self, key: K, readopts: &R, ) -> Result<Option<DBVector>, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.