doc: update documentation of catalog.load_by_class

This commit is contained in:
2025-11-11 11:14:15 +01:00
parent 7a250201b3
commit 8a23cfc34d

View File

@@ -14,6 +14,15 @@ impl Catalog {
/// state `EntityState::Loaded`.
/// - Any existing in-memory entities with matching IDs are replaced.
/// - **Database State:** Unchanged.
///
/// # Type Parameters
///
/// * `T` - The type of the entity to load, which must implement the `EAV` trait.
///
/// # Errors
///
/// Returns `Err(FailedTo::LoadFromDB)` if there is an issue loading entities
/// from the database.
pub fn load_by_class<T>(&mut self) -> Result<(), FailedTo>
where
T: EAV,