Rust Cheatsheet
NewRust reference — ownership, borrowing, traits, pattern matching, and iterators.
Frequently Asked Questions
Does this actually explain ownership and borrowing, or just mention them?
It covers them with multiple concrete entries. The first category includes moving ownership, immutable and mutable borrows, borrowing in function signatures, String vs &str, and lifetime annotations.
Why can't I find async/await in this Rust cheatsheet?
Because this sheet is focused on core Rust topics like ownership, pattern matching, error handling, traits, iterators, collections, and Cargo commands. Async is simply outside the current built-in dataset.
Can I view both the minimal syntax and a fuller Rust example?
Yes. The page has the same short-vs-full toggle as the other cheatsheets, and every card also includes a separate example block you can copy.
Does it show the difference between using ? and calling unwrap or expect?
Yes. The Error Handling section includes separate entries for Result, the ? operator, unwrap_or/map_or, and expect, so you can compare those approaches directly.
Are Cargo commands included, or is this only language syntax?
Cargo is included. There are entries for cargo build, run, test, add, check, clippy, and fmt.