Even in Rust nightly, support for constant evaluation is still very limited compared to C++20's:
https://doc.rust-lang.org/reference/items/generics.html
At this time, you can't even pass float parameters or enums, let alone structs.
There's ongoing work to expand the capabilities of constant evaluation in Rust, but it will take years before they can close the gap with C++, which is not standing still:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/#mailing2022-01
Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.