Lines Matching defs:context
22 /// through a parse tree, accumulating error context on the way
37 /// This trait is required by the `context` combinator to add a static string
41 /// This is used mainly in the [context] combinator, to add user friendly information
140 /// through a parse tree, accumulating error context on the way
153 /// part of input data, and some context
160 /// Error context for `VerboseError`
162 /// Static string added by the `context` function
231 /// This is used mainly in the [context] combinator, to add user friendly information
233 pub fn context<I: Clone, E: ContextError<I>, F, O>(
234 context: &'static str,
243 Err(Err::Error(e)) => Err(Err::Error(E::add_context(i, context, e))),
244 Err(Err::Failure(e)) => Err(Err::Failure(E::add_context(i, context, e))),
331 "{i}: at line {line_number}, in {context}:\n\
336 context = s,
592 context: &'static str,
600 println!("{}: Error({:?}) at:\n{}", context, e, i.to_hex(8));