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

The Pain of Real Linear Types in Rust

For whatever reason "linear" types in Rust came up at work today, at which point I made my usual assertion that they're a nightmare, because they don't compose well. I tried to explain it off the top of my head, but I figured it's best for me to just writ... (more…)

Read more »