Graphical depiction of ownership and borrowing in Rust

Below is a graphical depiction of moving, copying, and borrowing in the Rust language. Most of these concepts are fairly specific to Rust and are therefore a common stumbling block for many learners. Read more

Similar

24 days of Rust – derive_builder

Today our focus is the derive_builder crate. It provides a macro to automatically generate setter methods for struct fields. And since all setters return the struct itself, we can chain them in a so called builder pattern.

Read more »

Optimizing Rust Struct Size

Anyone who knows me knows that I've been spending a lot of time working on the Rust compiler, to the detriment of all my other projects. I'm glad to say I'm done. The 2000-foot version: Rust structs, (more…)

Read more »