pub trait AsChar {
// Required methods
fn as_char(self) -> char;
fn is_alpha(self) -> bool;
fn is_alphanum(self) -> bool;
fn is_dec_digit(self) -> bool;
fn is_hex_digit(self) -> bool;
fn is_oct_digit(self) -> bool;
fn len(self) -> usize;
}
Available on crate feature
mtls
only.Expand description
Transforms common types to a char for basic token parsing
Required Methods§
Sourcefn is_alpha(self) -> bool
fn is_alpha(self) -> bool
Tests that self is an alphabetic character
Warning: for &str
it recognizes alphabetic
characters outside of the 52 ASCII letters
Sourcefn is_alphanum(self) -> bool
fn is_alphanum(self) -> bool
Tests that self is an alphabetic character or a decimal digit
Sourcefn is_dec_digit(self) -> bool
fn is_dec_digit(self) -> bool
Tests that self is a decimal digit
Sourcefn is_hex_digit(self) -> bool
fn is_hex_digit(self) -> bool
Tests that self is an hex digit
Sourcefn is_oct_digit(self) -> bool
fn is_oct_digit(self) -> bool
Tests that self is an octal digit