Skip to main content

Module ranked

Module ranked 

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

DiffableRankEntry
Trait for rank entries that support --diff <ref> comparison.
RankEntry
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.