Expand description
Ranked list helpers: scoring, stats, and the shared rank pipeline.
§Table formatting
The RankEntry trait + format_ranked_table function provide shared
tabular rendering for all rank-pattern commands. Implement RankEntry on
your entry struct, then call format_ranked_table() in your
OutputFormatter::format_text().
Structs§
- Column
- Column definition for ranked table rendering.
- Rank
Stats - Stats computed over a full ranked list before truncation.
- Scored
- A scored entity in a ranked list.
Enums§
- Align
- Column alignment in a ranked table.
Traits§
- Diffable
Rank Entry - Trait for rank entries that support
--diff <ref>comparison. - Rank
Entry - Trait for entries that can be rendered in a ranked table.
Functions§
- compute_
ranked_ diff - Compute per-entry deltas between current and baseline entries.
- format_
delta - Format a delta value as a string with sign prefix.
- format_
ranked_ table - Render a ranked list as a text table.
- rank_
and_ truncate - Sort by custom comparator, compute stats from a score function, and truncate.
- rank_
pipeline - Sort, compute stats, truncate — the shared rank pipeline.