combine::parser::char

Function lower

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

Parses an lowercase letter according to std::char::is_lowercase.

use combine::Parser;
use combine::parser::char::lower;
assert_eq!(lower().parse("a"), Ok(('a', "")));
assert!(lower().parse("A").is_err());