Skip to main content

display_width

Function display_width 

Source
pub fn display_width(s: &str) -> usize
Expand description

Calculate the display width of a string

For now, this is a simple character count. Could be enhanced with unicode-width crate for proper CJK handling.