Function parsell::character
[−]
[src]
pub fn character<F>(f: F) -> CharacterParser<F> where F: Function<char, Output=bool>
An uncommitted parser that reads one character.
The parser character(f)
reads one character ch
from the input,
if f(ch)
is true
then it commits and the result is ch
,
otherwise it backtracks.