Opportunistic zero copy parsing for escaped_transform using Cow
#543
Labels
A-combinator
Area: combinators
C-enhancement
Category: Raise on the bar on expectations
M-breaking-change
Meta: Implementing or merging this will introduce a breaking change.
Please complete the following tasks
winnow version
0.6.13
Describe your use case
Something like this works:
But this doesn't compile:
Describe the solution you'd like
It would be nice if escaped_transform could have zero copy parsing when the string happens to contain no escapes (which is the common case for my use case).
Alternatives, if applicable
I could try to write my own parser from scratch instead of using escaped_transform and make it support this. I would rather not and also it would be nice to have something that is reusable and available for others too.
Additional Context
No response
The text was updated successfully, but these errors were encountered: