Function rocket::mtls::x509::der_parser::rusticata_macros::combinator::cond_else

source ·
pub fn cond_else<I, O, E, C, F, G>(
    cond: C,
    first: F,
    second: G
) -> impl FnMut(I)
where E: ParseError<I>, C: Fn() -> bool, F: Parser<I, O, E>, G: Parser<I, O, E>,
Available on crate feature mtls only.
Expand description

Helper macro for nom parsers: run first parser if condition is true, else second parser