Trait DbMap

Source
pub trait DbMap<KT: DbMapKeyType>: DbXxx<KT> {
    // Required methods
    fn iter(&self) -> DbXxxIter<KT> ;
    fn iter_mut(&mut self) -> DbXxxIterMut<KT> ;
    fn keys(&self) -> DbXxxKeys<KT> ;
    fn values(&self) -> DbXxxValues<KT> ;
}
Expand description

key-value db map store interface.

Required Methods§

Source

fn iter(&self) -> DbXxxIter<KT>

An iterator visiting all key-value pairs in arbitrary order. The iterator element type is (&’a K, &’a V).

Source

fn iter_mut(&mut self) -> DbXxxIterMut<KT>

An iterator visiting all key-value pairs in arbitrary order, with mutable references to the values. The iterator element type is (&’a K, &’a mut V).

Source

fn keys(&self) -> DbXxxKeys<KT>

An iterator visiting all keys in arbitrary order. The iterator element type is KT.

Source

fn values(&self) -> DbXxxValues<KT>

An iterator visiting all values in arbitrary order. The iterator element type is Vec.

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.

Implementors§

Source§

impl<KT: DbMapKeyType> DbMap<KT> for FileDbMap<KT>