pub fn truncate_str(s: &str, max_len: usize) -> String
Truncate a string to max_len characters, appending “…” if truncated.
max_len