Skip to main content

str_width

Function str_width 

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

Display width of a string, in terminal columns (the sum of its characters’ widths). Use this instead of .chars().count() for visual layout.