pub struct Kv { /* private fields */ }Implementations§
Source§impl Kv
impl Kv
pub fn new<P: AsRef<Path>>(p: P) -> Result<Self, Error>
pub fn clear(&self) -> Result<(), Error>
pub fn contains_key<S: AsRef<str>>(&self, key: S) -> Result<bool, Error>
pub fn get<S: AsRef<str>>(&self, key: S) -> Result<Option<String>, Error>
pub fn insert<S: AsRef<str>, T: AsRef<str>>( &self, key: S, value: T, ) -> Result<Option<String>, Error>
pub fn with_prefix<'a>(&'a self, prefix: &'a str) -> Result<KvCursor<'a>, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for Kv
impl !Send for Kv
impl !Sync for Kv
impl !UnwindSafe for Kv
impl Freeze for Kv
impl Unpin for Kv
impl UnsafeUnpin for Kv
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