Skip to main content

str_width

Function str_width 

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

The display width of a string.

Emoji sequences (such as family emoji joined with ZWJ) count each component separately, so the result can be wider than what is displayed. That errs toward extra room rather than a misaligned table, so v0.1 leaves it as is.