unicode_width::tables

Function single_char_width

source
pub fn single_char_width(c: char) -> Option<usize>
Expand description

Returns the UAX #11 based width of c, or None if c is a control character. Ambiguous width characters are treated as narrow.