pub fn truncate_str(s: &str, max_bytes: usize) -> &str
Boundary-safe version of &s[..max_bytes]: truncates to the largest char boundary at or below max_bytes. Never panics.
&s[..max_bytes]
max_bytes