1
0
Fork 0
forked from wry/wry

wayland: implement ext-idle-notifier

This commit is contained in:
Julian Orth 2024-02-15 22:47:34 +01:00
parent 01e3930ced
commit 9a024fe72c
9 changed files with 287 additions and 3 deletions

View file

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