pub fn alpha_num<Input>() -> impl Parser<Input, Output = u8, PartialState = ()> where
    Input: Stream<Token = u8>,
    Input::Error: ParseError<Input::Token, Input::Range, Input::Position>, 
Expand description

Parses either an ASCII alphabet letter or digit (a–z, A–Z, 0–9).

use combine::Parser;
use combine::parser::byte::alpha_num;
assert_eq!(alpha_num().parse(&b"A"[..]), Ok((b'A', &b""[..])));
assert_eq!(alpha_num().parse(&b"1"[..]), Ok((b'1', &b""[..])));
assert!(alpha_num().parse(&b"!"[..]).is_err());