Using Const Generics in Rust

In part one, we defined a Grid trait and implemented it using 1D and 2D vectors. Benchmarks revealed that a 1D vector was a better choice than a nested 2D vector. In this post, we’ll write a new implementation that uses arrays instead of Vec. This should … Read more

Similar

Does Rust need proc-macros 2.0?

Without any doubt, macros are an important feature of the Rust programming language. Macros like println!, lazy_static!, various derive-macros and many others have saved countless hours of writing tedious boilerplate code. However, not everything is perfe... (more…)

Read more »