pub fn debug_long_utf8(s: impl AsRef<str>, max_chars: usize) -> String
Debug print a long string by truncating to n characters
let s = debug_long_utf8("๐ฆ".repeat(10), 3); assert_eq!(s, "๐ฆ๐ฆ๐ฆ (10)");