Skip to content
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

Allow access to bytes::Bytes from protobuf::Chars #720

Open
SamHDev opened this issue Apr 20, 2024 · 0 comments
Open

Allow access to bytes::Bytes from protobuf::Chars #720

SamHDev opened this issue Apr 20, 2024 · 0 comments

Comments

@SamHDev
Copy link

SamHDev commented Apr 20, 2024

For my current task, I want to slice the underlying bytes of protobuf::Chars from a regex capture group. This seems impossible with the current API.

If this was to be implemented an AsRef<_> would likely be the best way to implement this.

I'mma fork and add this small snippet, lemme know what you think?

- Sam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant