De-mystifying JSON
How to look at a JSON shape and translate it to Rust structs and enums.
Posts, notes, and digests — building the things, mostly in Rust
How to look at a JSON shape and translate it to Rust structs and enums.
How Rust programs are organized with crates, packages, and modules, including file structure, visibility, paths, and the use keyword.
How Rust handles recoverable errors with the Result type, including pattern matching, the ? operator, and common methods like map_err and unwrap_or.
How Rust uses the Option type instead of null values, with pattern matching, if let, and common methods like unwrap, map, and unwrap_or.
How to use Rust's match expression for exhaustive pattern matching, including enums with data, the wildcard pattern, if let, and Option.
How Rust manages memory through ownership, moving, copying, cloning, borrowing, and references, with the rules that make your programs safe without a garbage collector.
How to add behavior to structs in Rust with methods and associated functions using impl blocks.
Struggling to decompose problems into smaller steps? This is the cheatsheet for you.
Four repeating patterns that cover most programming problems, no matter how different they look on the surface.
How to define and use enums in Rust, including variants with data and an introduction to pattern matching with match.