Struct persistent_hashmap::PersistentHashmap [−][src]
Methods
impl<K: ?Sized, V: Copy + Default> PersistentHashmap<K, V>
[src]
impl<K: ?Sized, V: Copy + Default> PersistentHashmap<K, V>
pub fn new<P>(path: P, size: u64) -> Result<PersistentHashmap<K, V>, Error> where
P: AsRef<Path>,
[src]
pub fn new<P>(path: P, size: u64) -> Result<PersistentHashmap<K, V>, Error> where
P: AsRef<Path>,
Creates a new persistent hashmap
pub fn open<P>(path: P) -> Result<PersistentHashmap<K, V>, Error> where
P: AsRef<Path>,
[src]
pub fn open<P>(path: P) -> Result<PersistentHashmap<K, V>, Error> where
P: AsRef<Path>,
Opens an existing persistent hashmap
pub fn insert<Q: ?Sized>(
&mut self,
k: &Q,
v: V
) -> Result<Option<V>, InsertError> where
K: Borrow<Q>,
Q: Hash,
[src]
pub fn insert<Q: ?Sized>(
&mut self,
k: &Q,
v: V
) -> Result<Option<V>, InsertError> where
K: Borrow<Q>,
Q: Hash,
pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<V> where
K: Borrow<Q>,
Q: Hash,
[src]
pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<V> where
K: Borrow<Q>,
Q: Hash,
Auto Trait Implementations
impl<K: ?Sized, V> Send for PersistentHashmap<K, V> where
K: Send,
V: Send,
impl<K: ?Sized, V> Send for PersistentHashmap<K, V> where
K: Send,
V: Send,
impl<K: ?Sized, V> Sync for PersistentHashmap<K, V> where
K: Sync,
V: Sync,
impl<K: ?Sized, V> Sync for PersistentHashmap<K, V> where
K: Sync,
V: Sync,