[][src]Trait nom::AsChar

pub trait AsChar {
    pub fn as_char(self) -> char;
pub fn is_alpha(self) -> bool;
pub fn is_alphanum(self) -> bool;
pub fn is_dec_digit(self) -> bool;
pub fn is_hex_digit(self) -> bool;
pub fn is_oct_digit(self) -> bool;
pub fn len(self) -> usize; }

Transforms common types to a char for basic token parsing

Required methods

pub fn as_char(self) -> char[src]

makes a char from self

pub fn is_alpha(self) -> bool[src]

Tests that self is an alphabetic character

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

pub fn is_alphanum(self) -> bool[src]

Tests that self is an alphabetic character or a decimal digit

pub fn is_dec_digit(self) -> bool[src]

Tests that self is a decimal digit

pub fn is_hex_digit(self) -> bool[src]

Tests that self is an hex digit

pub fn is_oct_digit(self) -> bool[src]

Tests that self is an octal digit

pub fn len(self) -> usize[src]

Gets the len in bytes for self

Loading content...

Implementations on Foreign Types

impl AsChar for u8[src]

impl<'a> AsChar for &'a u8[src]

impl AsChar for char[src]

impl<'a> AsChar for &'a char[src]

Loading content...

Implementors

Loading content...