Function rocket::mtls::oid::asn1_rs::nom::error::context

pub fn context<I, E, F, O>(context: &'static str, f: F) -> impl FnMut(I)
where I: Clone, E: ContextError<I>, F: Parser<I, O, E>,
Available on crate feature mtls only.
Expand description

Create a new error from an input position, a static string and an existing error. This is used mainly in the context combinator, to add user friendly information to errors when backtracking through a parse tree