-
Notifications
You must be signed in to change notification settings - Fork 13.4k
String is missing as_vec
#19080
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
Comments
This was originally done because a |
I think it's fine to have this "hole" in the API, although I guess in the absence of an as_vec method I would have named as_mut_vec that. API's stabilized, though. |
Closing as WONTFIX: you can get this via |
I've just stumbled upon a case where Many SIMD libraries, e.g. simdjson, can be implemented more efficiently if the input buffer can be "safely" over-read by a dozen bytes. In Rust, a safe abstraction for such libraries can be implemented by (ab-)using Anyway, this is why interfaces that take Sure, you could overload the interface for both Should this be an RFC? |
More rustfmt hang investigations
String
contains asas_mut_vec
method, but is missing a matchingas_vec
. It was likely forgotten during collections reform.cc @gankro
The text was updated successfully, but these errors were encountered: