66
What are some mind blowing Rust tricks?
(programming.dev)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
Rust has "const generics" which are, for example, used to pass the length of a fixed-length array via the type system. Apparently, const generics also do allow for some mild arithmetic.
https://doc.rust-lang.org/reference/items/generics.html#const-generics