autocommit 2022-04-07 23:21:31 CEST
This commit is contained in:
parent
be32036824
commit
26f8c1aeb6
14 changed files with 86 additions and 28 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue