[][src]Function lip::any_char

pub fn any_char<'a, S: Clone + 'a>() -> impl Parser<'a, char, S>

Match any single character, usually used together with pred.

Exmaple:

any_char().pred(
  | character |
  character.is_digit(10)
  , "a decimal digit"
)

The above example is parses a decimal digit. See whole_decimal for the full code.