rust-embedded / heapless

Heapless, `static` friendly data structures
Apache License 2.0
1.56k stars 185 forks source link

feature: initialize with const #515

Open oligamiq opened 1 month ago

oligamiq commented 1 month ago

When creating a vec, is it possible to use const fn so that the values can be prepared from the beginning?

burrbull commented 1 month ago

Only in nightly Rust for now.

oligamiq commented 1 month ago

Do you plan to achieve an equivalent in stable using macros?