Function rustrict::width_str

source ·
pub fn width_str(s: &str) -> usize
Expand description

Convenience method for getting the width, in m’s, of an entire string.

Warning: If the width overflows, the result is undefined (e.g. panic or overflow).