pub fn trim_to_width(s: &str, budget: usize) -> &str
Expand description

Trims a string to a maximum number of m’s. A budget of 5 would allow five m, or more narrower characters, or fewer wider characters.