pub struct Db { /* private fields */ }
Expand description
A Leveldb Database
Implementations§
source§impl Db
impl Db
sourcepub fn get(
&mut self,
options: &ReadOptions,
key: &[u8]
) -> Result<Option<LevelDbString>, LevelDbString>
pub fn get( &mut self, options: &ReadOptions, key: &[u8] ) -> Result<Option<LevelDbString>, LevelDbString>
Get a value with a key.
sourcepub fn iter_owned(&mut self, options: &ReadOptions) -> OwnedIterator<'_> ⓘ
pub fn iter_owned(&mut self, options: &ReadOptions) -> OwnedIterator<'_> ⓘ
Iter all db keys
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Db
impl !Send for Db
impl !Sync for Db
impl Unpin for Db
impl UnwindSafe for Db
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more