Skip to main content

inspect

Function inspect 

Source
pub fn inspect<'a, P1, A, N: Node, L>(
    msg: &'a str,
    parser: P1,
) -> impl Fn(ParseInput<'a, N>, &mut StaticState<L>) -> Result<(ParseInput<'a, N>, A), ParseError> + 'a
where P1: Fn(ParseInput<'a, N>, &mut StaticState<L>) -> Result<(ParseInput<'a, N>, A), ParseError> + 'a, L: FnMut(&NamespacePrefix) -> Result<NamespaceUri, ParseError>,
Expand description

Emits a message to stderr from within the parser combinator. This can be useful for debugging.