pub fn cond_else<I, O, E: ParseError<I>, C, F, G>(
cond: C,
first: F,
second: G,
) -> impl FnMut(I) -> IResult<I, O, E>
Expand description
Helper macro for nom parsers: run first parser if condition is true, else second parser
pub fn cond_else<I, O, E: ParseError<I>, C, F, G>(
cond: C,
first: F,
second: G,
) -> impl FnMut(I) -> IResult<I, O, E>
Helper macro for nom parsers: run first parser if condition is true, else second parser