3 ms·
As I've already said, nowadays there are const generics which do (almost) the same. But before them, these were the only way to use integer values in generics.
by ReleaseCandidat 3y ago
As I've already said, nowadays there are const generics which do (almost) the same. But before them, these were the only way to use integer values in generics.
They came with 1.51: https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html