Skip to content
Discussion options

You must be logged in to vote

I guess you can perhaps use Span? It gives a textual position of each match's start and end (not sure if that's what you meant -- otherwise, a custom code may be needed to compute the "where" part):
https://docs.rs/pest/latest/pest/iterators/struct.Pair.html#method.as_span
https://docs.rs/pest/latest/pest/struct.Span.html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yatesco
Comment options

Answer selected by yatesco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants