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§
Sourcefn iter(&self) -> DbXxxIter<KT> ⓘ
fn iter(&self) -> DbXxxIter<KT> ⓘ
An iterator visiting all key-value pairs in arbitrary order. The iterator element type is (&’a K, &’a V).
Sourcefn iter_mut(&mut self) -> DbXxxIterMut<KT> ⓘ
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).
Sourcefn keys(&self) -> DbXxxKeys<KT> ⓘ
fn keys(&self) -> DbXxxKeys<KT> ⓘ
An iterator visiting all keys in arbitrary order. The iterator element type is KT.
Sourcefn values(&self) -> DbXxxValues<KT> ⓘ
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.