pub fn display_width(s: &str) -> usizeExpand description
Calculate the display width of a string.
This is a convenience wrapper around unicode_width::UnicodeWidthStr::width().
§Example
use ratatui_interact::utils::display::display_width;
assert_eq!(display_width("Hello"), 5);
assert_eq!(display_width("你好"), 4); // CJK characters are 2 cells wide