Home
last modified time | relevance | path

Searched refs:UnicodeWidthChar (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/unicode-width/src/
Dtests.rs16 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 …]
Dlib.rs70 pub trait UnicodeWidthChar { interface
90 impl UnicodeWidthChar for char {
/external/rust/crates/textwrap/src/
Dcore.rs68 unicode_width::UnicodeWidthChar::width(ch).unwrap_or(0) in ch_width()
656 use unicode_width::UnicodeWidthChar;
/external/rust/crates/codespan-reporting/src/term/
Drenderer.rs669 use unicode_width::UnicodeWidthChar; in char_metrics()