[−][src]Trait nom::AsChar
transforms common types to a char for basic token parsing
Required Methods
fn as_char(self) -> char
makes a char from self
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
fn is_alphanum(self) -> bool
tests that self is an alphabetic character or a decimal digit
fn is_dec_digit(self) -> bool
tests that self is a decimal digit
fn is_hex_digit(self) -> bool
tests that self is an hex digit
fn is_oct_digit(self) -> bool
tests that self is an octal digit
fn len(self) -> usize
gets the len in bytes for self
Implementations on Foreign Types
impl AsChar for u8
[src]
impl AsChar for u8
fn as_char(self) -> char
[src]
fn as_char(self) -> char
fn is_alpha(self) -> bool
[src]
fn is_alpha(self) -> bool
fn is_alphanum(self) -> bool
[src]
fn is_alphanum(self) -> bool
fn is_dec_digit(self) -> bool
[src]
fn is_dec_digit(self) -> bool
fn is_hex_digit(self) -> bool
[src]
fn is_hex_digit(self) -> bool
fn is_oct_digit(self) -> bool
[src]
fn is_oct_digit(self) -> bool
fn len(self) -> usize
[src]
fn len(self) -> usize
impl<'a> AsChar for &'a u8
[src]
impl<'a> AsChar for &'a u8
fn as_char(self) -> char
[src]
fn as_char(self) -> char
fn is_alpha(self) -> bool
[src]
fn is_alpha(self) -> bool
fn is_alphanum(self) -> bool
[src]
fn is_alphanum(self) -> bool
fn is_dec_digit(self) -> bool
[src]
fn is_dec_digit(self) -> bool
fn is_hex_digit(self) -> bool
[src]
fn is_hex_digit(self) -> bool
fn is_oct_digit(self) -> bool
[src]
fn is_oct_digit(self) -> bool
fn len(self) -> usize
[src]
fn len(self) -> usize
impl AsChar for char
[src]
impl AsChar for char
fn as_char(self) -> char
[src]
fn as_char(self) -> char
fn is_alpha(self) -> bool
[src]
fn is_alpha(self) -> bool
fn is_alphanum(self) -> bool
[src]
fn is_alphanum(self) -> bool
fn is_dec_digit(self) -> bool
[src]
fn is_dec_digit(self) -> bool
fn is_hex_digit(self) -> bool
[src]
fn is_hex_digit(self) -> bool
fn is_oct_digit(self) -> bool
[src]
fn is_oct_digit(self) -> bool
fn len(self) -> usize
[src]
fn len(self) -> usize
impl<'a> AsChar for &'a char
[src]
impl<'a> AsChar for &'a char
fn as_char(self) -> char
[src]
fn as_char(self) -> char
fn is_alpha(self) -> bool
[src]
fn is_alpha(self) -> bool
fn is_alphanum(self) -> bool
[src]
fn is_alphanum(self) -> bool
fn is_dec_digit(self) -> bool
[src]
fn is_dec_digit(self) -> bool
fn is_hex_digit(self) -> bool
[src]
fn is_hex_digit(self) -> bool
fn is_oct_digit(self) -> bool
[src]
fn is_oct_digit(self) -> bool
fn len(self) -> usize
[src]
fn len(self) -> usize