format_list_smart

Function format_list_smart 

Source
pub fn format_list_smart(
    items: &[String],
    max_show: usize,
    max_item_width: usize,
) -> String
Expand description

Format a list of strings smartly: show up to max_show items, add ā€œ+Nā€ if more Each item is truncated to max_item_width if needed