pub struct FileDb<K: Key, V: Value> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<K, V> DbOp<K, V> for FileDb<K, V>
impl<K, V> DbOp<K, V> for FileDb<K, V>
fn get_current_tree(&self) -> Option<String>
fn flush(&self) -> Result<&'static str>
fn open_tree(&mut self, tree_name: &str) -> Option<bool>
fn tree_names(&self) -> Vec<String>
fn drop_tree(&mut self, tree_name: &str) -> bool
fn clear_tree(&mut self, tree_name: &str) -> bool
fn merge_trees( &mut self, tree_name_source: &str, tree_name_dest: &str ) -> Option<()>
fn merge_current_tree_with(&mut self, tree_name_source: &str) -> Option<()>
fn apply_batch(&mut self, batch: Batch<K, V>) -> Option<()>
fn apply_tree( &mut self, tree_name: &str, consumer: &mut impl FnMut(&mut Tree<K, V>) -> Option<V> ) -> Option<V>
fn open_tree_and_apply( &mut self, tree_name: &str, consumer: &mut impl FnMut(&mut Tree<K, V>) -> Option<V> ) -> Option<V>
source§impl<K: Key, V: Value> Op<K, V> for FileDb<K, V>
impl<K: Key, V: Value> Op<K, V> for FileDb<K, V>
fn read(&self, k: impl Into<K>, r: impl Fn(&V) -> Option<V>) -> Option<V>
fn insert(&mut self, k: impl Into<K>, v: impl Into<V>) -> Option<V>
fn remove(&mut self, k: impl Into<K>) -> Option<V>
fn clear(&mut self)
fn contains(&self, k: &K) -> Option<bool>
fn len(&self) -> Option<usize>
fn keys(&self) -> Vec<K>
fn list_all(&self) -> BTreeMap<K, V>
fn get_value(&self, k: impl Into<K>) -> Option<V>
fn read_no_op(&self, k: impl Into<K>, r: impl Fn(&V) -> Option<V>) -> Option<V>
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<K, V> Freeze for FileDb<K, V>
impl<K, V> !RefUnwindSafe for FileDb<K, V>
impl<K, V> Send for FileDb<K, V>
impl<K, V> Sync for FileDb<K, V>
impl<K, V> Unpin for FileDb<K, V>
impl<K, V> !UnwindSafe for FileDb<K, V>
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