Struct persistent_hashmap::PersistentHashmap [] [src]

pub struct PersistentHashmap<K: KeyTypeBounds, V: ValueTypeBounds> {
    // some fields omitted
}

Methods

impl<K: KeyTypeBounds, V: ValueTypeBounds> PersistentHashmap<K, V>
[src]

fn new<P>(path: P, size: u64) -> Result<PersistentHashmap<K, V>, Error> where P: AsRef<Path>

Creates a new persistent hashmap

fn open<P>(path: P) -> Result<PersistentHashmap<K, V>, Error> where P: AsRef<Path>

Opens an existing persistent hashmap

fn insert(&mut self, k: K, v: V) -> Result<Option<V>, InsertError>

fn get(&self, k: K) -> Option<V>