Trait nom::AsChar[][src]

pub trait AsChar {
    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; }
Expand description

Transforms common types to a char for basic token parsing

Required methods

makes a char from self

Tests that self is an alphabetic character

Warning: for &str it recognizes alphabetic characters outside of the 52 ASCII letters

Tests that self is an alphabetic character or a decimal digit

Tests that self is a decimal digit

Tests that self is an hex digit

Tests that self is an octal digit

Gets the len in bytes for self

Implementations on Foreign Types

Implementors