Function rusticata_macros::combinator::upgrade_error

source ยท
pub fn upgrade_error<I, O, E1: ParseError<I>, E2, F>(
    f: F,
) -> impl FnMut(I) -> IResult<I, O, E2>
where F: FnMut(I) -> IResult<I, O, E1>, E2: From<E1> + ParseError<I>,
Expand description

Apply combinator, automatically converts between errors if the underlying type supports it