doc: update documentation of catalog.list_by_subclass method

This commit is contained in:
2026-02-27 10:49:54 +01:00
parent 181e310ebd
commit 915f9d320d

View File

@@ -13,12 +13,9 @@ impl Catalog {
/// ///
/// # Returns /// # Returns
/// ///
/// A `Result` containing a `Vec` of `Result<T, FailedTo>>`. Each inner `Result` /// A `Result` containing a `Vec<T>` of entities that were successfully
/// represents the outcome of converting an entity to type `T`. /// converted to type `T`. Entities that fail conversion are silently
/// /// skipped and not included in the returned vector.
/// - `Ok(Vec<Ok(T)>)`: A vector of successfully converted entities.
/// - `Ok(Vec<Err(FailedTo::ConvertEntity)>)`: If an entity of the correct class
/// and subclass could not be converted to type `T`.
/// ///
/// # Errors /// # Errors
/// ///