[][src]Module gobble::chars

CharBool is the main trait for checking if a character is in a set. There are several helper methods to turn these into Parsers such as

  • star plus min_n exact, iplus iexact
use gobble::*;
assert_eq!(Alpha.min_n(4).parse_s("hello_"),Ok("hello".to_string()));
assert!(Alpha.min_n(6).parse_s("hello_").is_err());

assert_eq!((Alpha,NumDigit).star().parse_s("root123r(sds)"),Ok("root123r".to_string()));

Structs

Alpha
Any
CharExact
CharMin
CharNot
CharPlus
CharStar
CharsExcept
HexDigit
NumDigit
OneChar
WS
WSL

Traits

CharBool

Functions

do_chars
do_one_char
is_alpha
is_hex
is_num
not
one_char