[][src]Trait persawkv::prelude::_

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

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

Loading content...

Implementors

impl<K, V> KV<K, V> for BaseKV<K, V> where
    K: IndexType,
    V: IndexType
[src]

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]

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

Loading content...