Lines Matching refs:Some
75 Some(1)
77 Some(0)
90 cu if cu == 0 => Some(0),
92 cu if cu < 0x7f => Some(1),
141 use core::option::Option::{Some, None};
143 assert_eq!(UnicodeWidthChar::width('h'), Some(2));
144 assert_eq!('h'.width_cjk(), Some(2));
145 assert_eq!(UnicodeWidthChar::width('\x00'), Some(0));
146 assert_eq!('\x00'.width_cjk(), Some(0));
149 assert_eq!(UnicodeWidthChar::width('\u{2081}'), Some(1));
150 assert_eq!('\u{2081}'.width_cjk(), Some(2));
157 use core::option::Option::{Some, None};
159 assert_eq!(UnicodeWidthChar::width('\x00'),Some(0));
160 assert_eq!('\x00'.width_cjk(),Some(0));
165 assert_eq!(UnicodeWidthChar::width('w'),Some(1));
166 assert_eq!('w'.width_cjk(),Some(1));
168 assert_eq!(UnicodeWidthChar::width('h'),Some(2));
169 assert_eq!('h'.width_cjk(),Some(2));
171 assert_eq!(UnicodeWidthChar::width('\u{AD}'),Some(1));
172 assert_eq!('\u{AD}'.width_cjk(),Some(1));
174 assert_eq!(UnicodeWidthChar::width('\u{1160}'),Some(0));
175 assert_eq!('\u{1160}'.width_cjk(),Some(0));
177 assert_eq!(UnicodeWidthChar::width('\u{a1}'),Some(1));
178 assert_eq!('\u{a1}'.width_cjk(),Some(2));
180 assert_eq!(UnicodeWidthChar::width('\u{300}'),Some(0));
181 assert_eq!('\u{300}'.width_cjk(),Some(0));
188 use core::option::Option::{Some, None};
190 assert_eq!(UnicodeWidthChar::width('\u{1F971}'), Some(2));