-
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
Tracking issue for FixedSizeArray trait #27778
Comments
Note that the |
The FixedSizeArray trait would be great, except for many uses the ranges of sizes it's implemented for simply isn't what you need, and there is no way to expand it. Thus it is mostly useless in the current form. |
Could the compiler magically have an "infinite" (generated on demand) number of impls of If that happens and the type parameter is made into an associated type (and maybe an associated const for the size is added), then most of the other impls that currently only go up to N=32 could be made generic |
If/when the issue of using associated consts like consts is resolved, that is, allow This suggests to me that completing associated constants is basically the same problem as allowing generic integer parameters. |
for now |
https://crates.io/crates/arrayvec has a similar trait, called |
Triage: no changes |
I wrote rust-lang/rfcs#1915 about extending and stabilizing this trait. |
This trait isn't used anywhere and doesn't seem to be needed any more now that we have const generics. @rfcbot fcp close |
Team member @Amanieu has proposed to close this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to close, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
…m-ou-se Remove FixedSizeArray Remove `FixedSizeArray` trait, it has been superseded by const generics. Closes rust-lang#27778.
This is a tracking issue for the unstable
fixed_size_array
feature in the standard library. This is likely to be deprecated and removed in favor of generic integers one day, and in the meantime there are not many consumers of it.The text was updated successfully, but these errors were encountered: