-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Implement IntoIterator
for fixed size arrays
#29455
Comments
IntoIter
for fixed size arrays
psuedo-blocked on ManuallyDrop rust-lang/rfcs#197 There's no way to soundly partially move out of an array in a zero-cost way today. @bluss' ArrayVec crate accomplishes this by putting the array in a modified Option (one that supresses the null ptr optimization) and ptr::writeing None in the dtor. |
We can certainly do the ArrayVec thing to get the job done if it's dire. |
This would be a breaking change since Fortunately |
Seems like acceptable breakage, since this is clearly desirable. |
IntoIter
for fixed size arraysIntoIterator
for fixed size arrays
This is a duplicate of #25725 |
Size 0 to 12 or whatever.
Because otherwise it is only implemented via autoref and then you get references to the contents where you want the contents by value.
The text was updated successfully, but these errors were encountered: