Skip to main content

grapheme_width

Function grapheme_width 

Source
pub fn grapheme_width(grapheme: &str) -> usize
Expand description

Width of a single grapheme cluster.

ASCII is answered inline; every other cluster goes through the per-thread width cache (see width_cache_stats) in front of the Unicode width tables.