Skip to main content

HealthGroupResolver

Trait HealthGroupResolver 

Source
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§

Source

fn mode_label(&self) -> &'static str

Stable label for the active grouping mode (owner / directory / …).

Source

fn group_of<'a>(&'a self, rel_path: &'a Path) -> PathGroup<'a>

Resolve a repo-relative path to its group.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§