-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get Span without consuming Pair #223
Comments
I guess it does make sense for |
@dragostis The PR for this is ready: #224 😄 🎉 |
Dito, the function "Pair::into_inner(self,..)" is consuming the pair. I would like to see a function in API just borrowing the pair, something like "Pair::into_inner(&self, ..)" |
This issue was about |
If getting a Span consumes a Pair, I have to choose between getting that Span and getting its inner Pairs. This is counter intuitive given that the two don't really seem related. Sometimes I want to look further into the contents of a pair and also get its position. Can we add a
span(&self)
method (or something) to get the Span of a Pair and still allow you to get its inner Pairs afterwards?I would be happy to create a PR for this. 😄
The text was updated successfully, but these errors were encountered: