Searched refs:UnicodeWidthChar (Results 1 – 4 of 4) sorted by relevance
16 use super::UnicodeWidthChar;27 test::black_box(UnicodeWidthChar::width(c)); in cargo()82 UnicodeWidthChar::width(c) in simple_width_if()93 _ => UnicodeWidthChar::width(c) in simple_width_match()123 use super::UnicodeWidthChar; in test_char()127 assert_eq!(UnicodeWidthChar::width('h'), Some(2)); in test_char()129 assert_eq!(UnicodeWidthChar::width('\x00'), Some(0)); in test_char()131 assert_eq!(UnicodeWidthChar::width('\x01'), None); in test_char()133 assert_eq!(UnicodeWidthChar::width('\u{2081}'), Some(1)); in test_char()139 use super::UnicodeWidthChar; in test_char2()[all …]
70 pub trait UnicodeWidthChar { interface90 impl UnicodeWidthChar for char {
68 unicode_width::UnicodeWidthChar::width(ch).unwrap_or(0) in ch_width()656 use unicode_width::UnicodeWidthChar;
669 use unicode_width::UnicodeWidthChar; in char_metrics()