(&self, input: &str)
| 92 | // Parsing infrastructure |
| 93 | pub trait CharParser<T>: Parser<char, T, Error = ParseError> + Sized + Clone { |
| 94 | fn parse_text(&self, input: &str) -> anyhow::Result<T> { |
| 95 | self.parse(input) |
| 96 | .map_err(|errors| anyhow!("{}", format_errors_cli(input, errors))) |
| 97 | } |
| 98 | } |
| 99 | impl<T, P> CharParser<T> for P where P: Parser<char, T, Error = ParseError> + Clone {} |
| 100 |