pub fn trunc(s: &str, max: usize) -> String
Truncates to max chars, appending .. when it does. Char-based (not byte-based) so it never splits a multi-byte codepoint.
max
..