chore: update documentation of catalog.for_each method

This commit is contained in:
2026-02-27 11:47:52 +01:00
parent 98bc282c32
commit 1adf4f0f2d

View File

@@ -17,7 +17,9 @@ impl Catalog {
/// ///
/// # Returns /// # Returns
/// ///
/// A `Result` indicating success (`Ok(())`) or failure (`Err(FailedTo)`). /// A `Result` indicating success (`Ok(())`) or failure (`Err(FailedTo::LockCatalog)`).
/// Entities that cannot be converted to type `T` are silently skipped from the iteration
/// and do not cause this function to return an error.
pub fn for_each<T, F>(&self, mut predicate: F) -> Result<(), FailedTo> pub fn for_each<T, F>(&self, mut predicate: F) -> Result<(), FailedTo>
where where
T: EAV, T: EAV,