Guide API
Skip to main content

header_line

Function header_line 

Source
pub fn header_line(
    cols: &[ColumnSpec],
    widths: &[i32],
    sort: Option<(usize, SortDir)>,
    sep: char,
) -> String
Expand description

The header text: the labels laid out like format_line, the sorted column’s label carrying ▲/▼. A label too long for its column is cut so the marker stays visible.