Skip to main content

width_usize

Function width_usize 

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

The number of terminal cells s occupies, without saturating to u16.

Prefer width when the result feeds a u16-based geometry type such as Rect/Size; use this when the raw unicode-width measurement is needed instead.