Function rustrict::trim_to_width
source · pub fn trim_to_width(s: &str, budget: usize) -> &strExpand 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.