Added sorting utilities

This commit is contained in:
daladim 2021-07-05 11:28:06 +02:00
parent fbd076875a
commit 2b339a7aff
3 changed files with 14 additions and 0 deletions

View file

@ -100,6 +100,8 @@ pub trait CompleteCalendar : BaseCalendar {
async fn get_item_ids(&self) -> Result<HashSet<ItemId>, Box<dyn Error>>;
/// Returns all items that this calendar contains
///
/// See [`crate::utils::comparison`] for helper functions that help sorting the results
async fn get_items(&self) -> Result<HashMap<ItemId, &Item>, Box<dyn Error>>;
/// Returns a particular item