Function combine::char::char
[−]
[src]
pub fn char<I>(c: char) -> Token<I> where I: Stream<Item=char>
Parses a character and succeeds if the character is equal to c
let result = char('!') .parse("!") .map(|x| x.0); assert_eq!(result, Ok('!'));