Struct persistent_hashmap::PersistentHashmap [] [src]

pub struct PersistentHashmap<K: ?Sized, V> {
    // some fields omitted
}

Methods

impl<K: ?Sized, V: Copy + Default> PersistentHashmap<K, V>

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<Q: ?Sized>(&mut self, k: &Q, v: V) -> Result<Option<V>, InsertError> where K: Borrow<Q>, Q: Hash

fn get<Q: ?Sized>(&self, k: &Q) -> Option<V> where K: Borrow<Q>, Q: Hash