pub fn display_width(s: &str) -> usizeExpand description
Display-column width of s for monospace alignment.
Counts most characters as one column and East-Asian wide/fullwidth characters as two; control characters are zero-width. Used by batteries that align display columns (e.g. Markdown tables). Only monospace fonts honor these columns; proportional fonts will misalign padded text.