Function nom::error::context [−][src]
pub fn context<I: Clone, E: ParseError<I>, F, O>(
context: &'static str,
f: F
) -> impl Fn(I) -> IResult<I, O, E> where
F: Fn(I) -> IResult<I, O, E>,
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