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

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

Calculate the (monospace) width of the given string.

A thin convenience wrapper around unicode_width.