Function combine::byte::letter [] [src]

pub fn letter<I>() -> Letter<I> where
    I: Stream<Item = u8>, 

Parses an ASCII alphabet letter (a–z, A–Z).

use combine::Parser;
use combine::byte::letter;
assert_eq!(letter().parse(&b"a"[..]), Ok((b'a', &b""[..])));
assert_eq!(letter().parse(&b"A"[..]), Ok((b'A', &b""[..])));
assert!(letter().parse(&b"9"[..]).is_err());