Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

:timing
:sccache 1

Tips

  1. A Tuple in Rust can have up to 12 elements.

Tips and Traps

  1. Module std::collections has a good summary on when to each which collection in Rust.

Unpacking Variables (Multiple Assignments)

You can do multiple assignments simialarly as what you can do in Python.

let t = ("how", 1);
t.0
"how"
t.1
1
let(v1, v2) = ("how", 1)
v1
"how"
v2
1