pub fn inspect<'a, P1, A>(
msg: &'a str,
parser: P1
) -> impl Fn(ParseInput<'_>) -> ParseResult<'_, A> + '_
Expand description
Emits a message to stderr from within the parser combinator. This can be useful for debugging.
pub fn inspect<'a, P1, A>(
msg: &'a str,
parser: P1
) -> impl Fn(ParseInput<'_>) -> ParseResult<'_, A> + '_
Emits a message to stderr from within the parser combinator. This can be useful for debugging.