1. Introduction
  2. Language, Standard Library, and Code Organization
  3. Language
    ❱
    1. Rust Installation and First Steps
    2. Entry Points
    3. Data Types
    4. Variables
    5. Constants and Statics
    6. Ownership and Borrowing
    7. Lifetimes
    8. Slices
    9. Control Flow
    10. Pattern Matching
    11. Functions
    12. Closures
    13. Structs
    14. Enums
    15. Traits
    16. impl Trait
    17. Trait Objects
    18. Iterators
    19. Generics
    20. Attributes
    21. Macros
  4. Standard Library
    ❱
    1. Option
    2. Result
    3. Default
    4. Equality and Ordering
    5. Smart Pointers
      ❱
      1. Box
      2. Reference Counting
      3. Interior Mutability
      4. Clone-on-Write (Cow)
      5. Pin
    6. Drop
    7. Conversion Traits
    8. AsRef
    9. Borrow
    10. Automatic Trait Derivation (Derive)
    11. Overloading Operators
    12. Dynamic Typing
  5. Code Organization
    ❱
    1. Modules and Paths
    2. Visibility
    3. use Keyword
    4. Dependencies
    5. Code Organization by Project Type and Size
    6. Naming Conventions
  6. Recipes by Category
  7. Crate Selection
  8. Algorithms
    ❱
    1. Generate Random Values
    2. Sort a Vector
  9. Data Structures
    ❱
    1. Strings
    2. Vector
    3. HashMap
    4. Other Maps
    5. B-Trees
    6. Stacks and Queues
    7. Binary Heaps
    8. Linked Lists
    9. Bitfields
    10. Graph
    11. Heapless Data Structures
    12. Stack-allocated Arrays
    13. UUIDs
  10. Mathematics
    ❱
    1. Linear Algebra
    2. Trigonometry
    3. Complex Numbers
    4. Statistics
    5. Additional Numeric Types
  11. Links and Resources
  12. Links
  13. Rust Cheat Sheets
  14. Learning
  15. Books
  16. Blogs and Forums
  17. Example Code
  18. Meetings
  19. Videos
  20. Companies
  21. Contributing
  22. Contributing
    ❱
    1. Topics of Interest
    2. Repository Structure
    3. Development Environment Setup
    4. Editing
    5. Book Preprocessors
    6. Dev Containers and Docker
    7. API Documentation
    8. Crate Publication
  23. Index
  24. Thanks

The Rust How-to Book

Rust Cheatsheets

Cheatsheets
Comparison to Other Languages

Cheatsheets

  • cheats.rs↗ (GitHub)↗.
  • Rust for professionals↗.
  • Rust Cheatsheet (cheatsheets.one)↗.
  • Rust Cheatsheet (phaiax)↗.
  • Rust Cheatsheet (programming-idioms.org)↗.
  • Rust Cheatsheet (zerotomastery.io)↗.
  • The Complete(ish) Rust Cheat Sheet↗.
  • Rust Speedsheet↗.
  • Idiomatic Rust Snippets↗.

Comparison to Other Languages

  • Rust for C# developers↗.
  • A comparison of Rust's borrow checker to the one in C#↗.