[−][src]Trait persawkv::prelude::_
This trait represents the common interface for all key-...-value stores defined in this crate
Required methods
fn clear(&self) -> PRes<()>
Removes all entries from the KV store
fn insert(&self, key: K, value: V) -> PRes<()>
Inserts a key, value pair into the KV store
fn keys(&self) -> PRes<KeysIter<K, V>>
Gets all the keys contained in the KV store
fn remove(&self, key: K) -> PRes<()>
Removes a key and associated value from the KV store
Implementors
impl<K, V> KV<K, V> for BaseKV<K, V> where
K: IndexType,
V: IndexType,
[src]
K: IndexType,
V: IndexType,
fn clear(&self) -> PRes<()>
[src]
Removes all entries from the KV store
fn insert(&self, key: K, value: V) -> PRes<()>
[src]
Inserts a key, value pair into the KV store
fn keys(&self) -> PRes<KeysIter<K, V>>
[src]
Gets all the keys contained in the KV store
fn remove(&self, key: K) -> PRes<()>
[src]
Removes a key and associated value from the KV store
impl<K, V> KV<K, V> for MultiKV<K, V> where
K: IndexType,
V: IndexType,
[src]
K: IndexType,
V: IndexType,
fn clear(&self) -> PRes<()>
[src]
fn insert(&self, key: K, value: V) -> PRes<()>
[src]
fn keys(&self) -> PRes<KeysIter<K, V>>
[src]
fn remove(&self, key: K) -> PRes<()>
[src]
impl<K, V> KV<K, V> for SingleKV<K, V> where
K: IndexType,
V: IndexType,
[src]
K: IndexType,
V: IndexType,