[][src]Trait persawkv::XKV

pub trait XKV<K, V>: Sealed where
    K: IndexType,
    V: IndexType
{ fn insert(&self, key: K, value: V) -> PRes<()> { ... }
fn remove(&self, key: K) -> PRes<()> { ... }
fn clear(&self) -> PRes<()> { ... }
fn keys(&self) -> PRes<KeysIter<K, V>> { ... } }

Abstract over derived ..KV types

Provided methods

fn insert(&self, key: K, value: V) -> PRes<()>

Inserts a key, value pair into the KV store

fn remove(&self, key: K) -> PRes<()>

Removes a key and associated value from the KV store

fn clear(&self) -> PRes<()>

Removes all entries from the KV store

fn keys(&self) -> PRes<KeysIter<K, V>>

Gets all the keys contained in the KV store

Loading content...

Implementors

impl<K, V> XKV<K, V> for MultiKV<K, V> where
    K: IndexType,
    V: IndexType
[src]

impl<K, V> XKV<K, V> for SingleKV<K, V> where
    K: IndexType,
    V: IndexType
[src]

Loading content...