Function kparse::combinators::err_into

source ·
pub fn err_into<PA, I, O, E1, E2>(
    parser: PA
) -> impl FnMut(I) -> Result<(I, O), Err<E2>>where
    PA: Parser<I, O, E1>,
    E2: From<E1>,
Expand description

Converts the error type with the From trait.

The same function is available as postfix function parser.err_into() for parsers and as Result::err_into() for Result’s.