[][src]Function unsegen::widget::text_width

pub fn text_width(text: &str) -> Width

Calculate the (monospace) width of the given string.

A thin convenience wrapper around unicode_width.