Store

Trait Store 

Source
pub trait Store<K, V>: RawStore<K, V> {
    type Entry<'a>: StoreEntry<'a, Key = K, Value = V>
       where Self: 'a;
}
Expand description

The Store trait is used to define a key-value store container.

Required Associated Types§

Source

type Entry<'a>: StoreEntry<'a, Key = K, Value = V> where Self: 'a

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.

Implementations on Foreign Types§

Source§

impl<K, V> Store<K, V> for BTreeMap<K, V>

Source§

type Entry<'a> = Entry<'a, K, V> where BTreeMap<K, V>: 'a

Source§

impl<K, V> Store<K, V> for HashMap<K, V>

Source§

type Entry<'a> = Entry<'a, K, V> where HashMap<K, V>: 'a

Implementors§