1use unicode_segmentation::UnicodeSegmentation; 2 3 4pub fn str_len( str : &str ) -> usize 5{ 6 str.graphemes( true ) 7 .count() 8}