Skip to main content

format_ranked_table

Function format_ranked_table 

Source
pub fn format_ranked_table<E: RankEntry>(
    title: &str,
    entries: &[E],
    empty_message: Option<&str>,
) -> String
Expand description

Render a ranked list as a text table.

Produces: title line, blank line, column headers, separator, rows. If entries is empty, shows empty_message (or a default).