pub fn str_width(s: &str) -> usize
Calculate the display width of a string.
This is the sum of display widths of all characters in the string. Use this instead of .chars().count() when calculating visual layout.
.chars().count()