-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Beef can implement const Deref? #48
Comments
|
Yes, I understand. But unstable rust is my love. I will wait |
We already have |
Check out my PR #49. |
Any sort of access to underlying data is fine. I don't mind if it's incredibly convoluted, inconvenient and I have to wrap it in std::str::from_utf8_unchecked(std::slice::from_raw_parts(cow.get_raw_ptr().as_ptr(), length)) I just need a const way to access the data, today, not in 5 or so years. Currently can't even transmute the Cow into a pointer to access it in const context. I added this simple method in #56, as I don't want to use nightly over something as simple as this. |
In the case of
Beef::borrowed
can be implementedconst Deref
. Will it be done?The text was updated successfully, but these errors were encountered: