Function parsell::character [] [src]

pub fn character<F>(f: F) -> Character<F>

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.

This requires characters to be copyable.