-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Tracking Issue for maybe_uninit_write_slice #79995
Comments
This comment has been minimized.
This comment has been minimized.
These functions are great additions to the But if may open the bikeshed, should be renamed to |
This seems like a great reason to name these methods |
is it possible to add this as methods on |
@drmeepster what are the plans on getting this stabilized? |
I'm pretty interested in seeing this stabilized as well. |
I think it just needs an ACP and approval. |
Regarding the naming, I also think they should be called |
Then why is the api so different? |
Rename MaybeUninit::write_slice A step to push rust-lang#79995 forward. rust-lang/libs-team#122 also suggested to make them inherent methods, but they can't be — they'd conflict with slice's regular methods.
It's not possible to implement these methods as inherent methods on rust-lang/libs-team#122 suggested renaming to standard names, and there's a precedent for using "static" methods to avoid conflicts (e.g. @beepster4096 Could you update the issue description? |
Feature gate:
#![feature(maybe_uninit_write_slice)]
This is a tracking issue for
MaybeUninit::copy_from_slice
andMaybeUninit::clone_from_slice
.These methods are the equivalents of
[T]::copy_from_slice
and[T]::clone_from_slice
for uninitialized slices.Public API
Steps / History
Unresolved Questions
copy/clone_from_slice
? See reasoning for current name and Revamp unstable MaybeUninit APIs libs-team#122The text was updated successfully, but these errors were encountered: