const-generics
See original GitHub issueSummary
Implement and design the const_generics
feature with the initial goal of stabilizing the min_const_generics
subset.
Info
- Lead: @lcnr
- Lang-team liaison: @nikomatsakis
- Charter: projects/const-generics.md
- Repository: none yet
- Zulip stream: none yet
What is this issue?
This issue represents an active project group. It is meant to be used for the group to post updates to the lang team (and others) in a lightweight fashion. Please do not use the comments here for discussion, that should be kept in the Zulip stream (discussion comments here will be marked as off-topic).
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Const generics MVP hits beta! - Rust Blog
Const generics are generic arguments that range over constant values, rather than types or lifetimes. This allows, for instance, types to be ...
Read more >Const Generics - Rust By Practice
Const generics are generic arguments that range over constant values, rather than types or lifetimes. This allows, for instance, types to be parameterized ......
Read more >2000-const-generics - The Rust RFC Book
Const parameter (generic const): A const which a type or function is abstract over; this const is input to the concrete type of...
Read more >It's Time to Get Hyped About Const Generics in Rust
Const Generics Reduce Runtime Complexity ... This is powerful, but the current implementation of const generics is quite limited, on purpose.
Read more >Rust 1.51 Stabilizes Const Generics MVP, Improves Cargo ...
Const generics allow developers to define a variety of new generic types, but their implementations is not yet complete.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
2021-04-07:
news since the last update:
feature(min_const_generics)
has been stabilizedfeature(const_generics_defaults)
is now on nightly, allowing forcurrent topics:
fn split_first<T, const N: usize>(arr: [T; N]) -> (T, [T; N - 1])
feature(const_evaluatable_checked)
which is still quite brokenfn foo<const CONFIG: Config>
In the past, there have been various “procedural RFCs” that specify functionality that has already been deemed desirable, and therefore not required the full comment period (e.g. https://github.com/rust-lang/rfcs/pull/2300, https://github.com/rust-lang/rfcs/pull/2591). Perhaps this is another such situation.