You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be a nice convenience method. One issue is that the parser doesn't own the underlying string, so perhaps a new type would need to be created that owns the bytes and the current position.
For my use cases, I use memmap2 or am reading from a database which is why I borrow the bytes.
As far as I can see, the only API for getting a
Reader
is usingfrom_str
andnew
, both of which take a&str
.Having something like:
would make it simple to pass in a
File
, for example, without glue code to get a&str
or bytes, and passing it to the current interface.The text was updated successfully, but these errors were encountered: