Function combine::parser::byte::lower

source ·
pub fn lower<Input>() -> impl Parser<Input, Output = u8, PartialState = ()>
where Input: Stream<Token = u8>,
Expand description

Parses an lowercase ASCII letter (a–z).

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