unicode_width::tables

Function width_in_str

source
fn width_in_str(c: char, next_info: WidthInfo) -> (i8, WidthInfo)
Expand description

Returns the UAX #11 based width of c. Ambiguous width characters are treated as narrow.