pub fn truncate_to_width(text: &str, max_width: usize) -> StringExpand description
Truncate a string to fit within max_width display cells (unicode-safe).
Unlike byte slicing (&s[..n]), this respects multi-byte characters and
double-width CJK/emoji glyphs. Returns an owned String.