Rust Cheat Sheet

Get a brief introduction to Rust's basics.

Variable assignment

Code Description
let n = 5; Assign the value, 5, to n. The type of n is deduced.
let n : i32 = 5; Assign the value, 5, to n. n is an i32.
let
...