Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: