The Common Rust Traits

In Rust, data types – primitives, structs, enums and any other ‘aggregate’
types like tuples and arrays – are dumb. They may have methods but that
is just a convenience (they are just functions). Types have no
relationship with each other. Read more

Similar

Grids in Rust, part 2: const generics

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 ... (more…)

Read more »