pub fn apply_pattern_inheritance(
entry: &IndexEntry,
catalogue: &Catalogue,
) -> (IndexEntry, Option<InheritanceWarning>)Expand description
Apply pattern-id inheritance to entry and return the resolved
entry plus any advisory warning.
The function clones entry so the caller’s view is unchanged.
Cloning is cheap (the entry is a handful of Option<String> /
small primitive fields) and the alternative — mutating in place —
would force every caller to express the lifetime of the catalogue
borrow, which is more friction than it’s worth here.