doc: update documentation to reach higher coverage

This commit is contained in:
2025-10-29 14:23:33 +01:00
parent a38b96a667
commit 6ef36e2068
10 changed files with 114 additions and 10 deletions
+10
View File
@@ -1,6 +1,16 @@
use crate::*;
impl Catalog {
/// Returns the number of entities in the catalog.
///
/// # Returns
///
/// The total number of entities currently held in the catalog's memory.
///
/// # Errors
///
/// Returns `Err(FailedTo::LockCatalog)` if the catalog's internal mutex
/// could not be locked.
pub fn len(&self) -> Result<usize, FailedTo> {
self.with_items(|items| Ok(items.len()))
}