Skip to main content

char_display_width_or

Function char_display_width_or 

Source
pub fn char_display_width_or(ch: char, fallback: usize) -> usize
Expand description

Terminal display width of one character, with fallback for characters the width tables do not classify (control characters), matching call sites that treat unknown widths as one cell.