rust-embedded / heapless

Heapless, `static` friendly data structures
Apache License 2.0
1.53k stars 181 forks source link

feature: initialize with const #515

Open oligamiq opened 1 week ago

oligamiq commented 1 week 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 week ago

Only in nightly Rust for now.

oligamiq commented 1 week ago

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