Lines Matching defs:char
1 use std::char;
35 pub fn char(&self) -> Char {
168 at.char()
337 /// An inline representation of `Option<char>`.
339 /// This eliminates the need to do case analysis on `Option<char>` to determine
342 /// (The `Option<char>` is not related to encoding. Instead, it is used in the
350 match char::from_u32(self.0) {
369 char::from_u32(self.0).map_or(1, |c| c.len_utf8())
380 char::from_u32(self.0).map_or(false, regex_syntax::is_word_character)
387 match char::from_u32(self.0) {
394 impl From<char> for Char {
395 fn from(c: char) -> Char {
400 impl From<Option<char>> for Char {
401 fn from(c: Option<char>) -> Char {
406 impl PartialEq<char> for Char {
408 fn eq(&self, other: &char) -> bool {
413 impl PartialEq<Char> for char {
420 impl PartialOrd<char> for Char {
422 fn partial_cmp(&self, other: &char) -> Option<Ordering> {
427 impl PartialOrd<Char> for char {