Return a parser that will fail if there is any input following the text parsed by the provided parser.
(parser: impl CharParser<T>)
| 287 | /// Return a parser that will fail if there is any input following the text parsed by the |
| 288 | /// provided parser. |
| 289 | pub fn all_consuming<T>(parser: impl CharParser<T>) -> impl CharParser<T> { |
| 290 | parser.then_ignore(end()) |
| 291 | } |
| 292 | |
| 293 | #[cfg(test)] |
| 294 | mod tests { |
no outgoing calls
no test coverage detected