Function console::measure_text_width [] [src]

pub fn measure_text_width(s: &str) -> usize

Measure the width of a string in terminal characters.