with_failure_handling

Function with_failure_handling 

Source
pub fn with_failure_handling<'a, T>(
    combinator: impl Fn(&'a str) -> ParseResult<'_, T>,
) -> impl Fn(&'a str) -> Result<T, ParseErrorFailureError>
Expand description

Opinionated helper that converts a combinator into a Result<T, String>