1
0
Fork 0
forked from wry/wry

autocommit 2022-04-07 23:21:31 CEST

This commit is contained in:
Julian Orth 2022-04-07 23:21:32 +02:00
parent be32036824
commit 26f8c1aeb6
14 changed files with 86 additions and 28 deletions

View file

@ -78,6 +78,10 @@ impl<K: Eq + Hash, V> CopyHashMap<K, V> {
pub fn is_empty(&self) -> bool {
unsafe { self.map.get().deref().is_empty() }
}
pub fn len(&self) -> usize {
unsafe { self.map.get().deref().len() }
}
}
pub struct Locked<'a, K, V> {