Lines Matching defs:Char
15 c: Char,
35 pub fn char(&self) -> Char {
73 /// If no such character could be decoded, then `Char` is absent.
74 fn next_char(&self, at: InputAt) -> Char;
78 /// If no such character could be decoded, then `Char` is absent.
79 fn previous_char(&self, at: InputAt) -> Char;
109 fn next_char(&self, at: InputAt) -> Char {
113 fn previous_char(&self, at: InputAt) -> Char {
167 fn next_char(&self, at: InputAt) -> Char {
171 fn previous_char(&self, at: InputAt) -> Char {
260 fn next_char(&self, at: InputAt) -> Char {
264 fn previous_char(&self, at: InputAt) -> Char {
346 pub struct Char(u32);
348 impl fmt::Debug for Char {
357 impl Char {
394 impl From<char> for Char {
395 fn from(c: char) -> Char {
396 Char(c as u32)
400 impl From<Option<char>> for Char {
401 fn from(c: Option<char>) -> Char {
402 c.map_or(Char(u32::MAX), |c| c.into())
406 impl PartialEq<char> for Char {
413 impl PartialEq<Char> for char {
415 fn eq(&self, other: &Char) -> bool {
420 impl PartialOrd<char> for Char {
427 impl PartialOrd<Char> for char {
429 fn partial_cmp(&self, other: &Char) -> Option<Ordering> {