Trait AsChar
pub trait AsChar: Copy
Transforms common types to a char for basic token parsing
Required Methods
fn as_char(self) -> charmakes a char from self
fn is_alpha(self) -> boolTests that self is an alphabetic character
Warning: for
&strit recognizes alphabetic characters outside of the 52 ASCII lettersfn is_alphanum(self) -> boolTests that self is an alphabetic character or a decimal digit
fn is_dec_digit(self) -> boolTests that self is a decimal digit
fn is_hex_digit(self) -> boolTests that self is an hex digit
fn is_oct_digit(self) -> boolTests that self is an octal digit
fn is_bin_digit(self) -> boolTests that self is a binary digit
fn len(self) -> usizeGets the len in bytes for self
fn is_space(self) -> boolTests that self is ASCII space or tab
fn is_newline(self) -> boolTests if byte is ASCII newline: \n