pub fn tr<I, O, E, F>(
tag: &'static str,
context: Option<&'static str>,
name: &'static str,
parser: F,
) -> impl FnMut(I) -> IResult<I, O, E>Expand description
Main tracing function that wraps a parser with tracing functionality.
This function is the core of nom-tracer. It wraps a parser and adds tracing capabilities, recording the parser’s execution path and results.
§Arguments
tag- A static string used to categorize the trace events.context- An optional static string providing additional context for the trace.name- A static string identifying the parser being traced.parser- The parser function to be wrapped with tracing.