pub trait HealthGroupResolver {
// Required methods
fn mode_label(&self) -> &'static str;
fn group_of<'a>(&'a self, rel_path: &'a Path) -> PathGroup<'a>;
}Expand description
Command-neutral grouping resolver contract for --group-by health output.
The CLI owns the concrete resolver (CODEOWNERS parsing, package discovery); the engine grouping pass only needs the mode label and the group of a path, so it stays generic over the resolver instead of depending on the CLI type.
Required Methods§
Sourcefn mode_label(&self) -> &'static str
fn mode_label(&self) -> &'static str
Stable label for the active grouping mode (owner / directory / …).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".