CardDAV working with Thunderbird and Apple Contacts

This commit is contained in:
mdecimus
2025-04-18 13:55:55 +02:00
parent ce27cecded
commit 10ae19f2eb
53 changed files with 1544 additions and 1233 deletions

View File

@@ -47,6 +47,10 @@ impl<T: IdBimapItem> IdBimap<T> {
pub fn iter(&self) -> impl Iterator<Item = &T> {
self.name_to_id.values().map(|v| v.as_ref())
}
pub fn is_empty(&self) -> bool {
self.name_to_id.is_empty()
}
}
// SAFETY: Safe because Rc<> are never returned from the struct