1. Introduction
  2. How to Read This Book
  3. Core Concepts
  4. Rust Installation and First Steps
  5. Language
    ❱
    1. Entry Points
    2. Data Types
    3. Variables
    4. Constants and Statics
    5. Ownership and Borrowing
    6. Lifetimes
    7. Slices
    8. Control Flow
    9. Pattern Matching
    10. Functions
    11. Closures
    12. Structs
    13. Enums
    14. Traits
    15. impl Trait
    16. Trait Objects
    17. Iterators
    18. Generics
    19. Attributes
    20. Macros
  6. 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
    11. Overloading Operators
    12. Dynamic Typing
  7. Code Organization
    ❱
    1. Modules and Paths
    2. Visibility
    3. use Keyword
    4. Dependencies
    5. Code Organization by Project Type and Size
    6. Naming Conventions
  8. Code Examples by Category
  9. Algorithms
    ❱
    1. Generate Random Values
    2. Sort a Vector
  10. 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
  11. File System
    ❱
    1. File Reading & Writing
    2. Directories
    3. Directory Traversal
    4. File Watching
    5. Temporary Files and Directories
    6. User Directories
  12. Mathematics
    ❱
    1. Linear Algebra
    2. Trigonometry
    3. Complex Numbers
    4. Statistics
    5. Additional Numeric Types
  13. Resources
  14. Crate Selection
    ❱
    1. State of the Rust Ecosystem
  15. Links
    ❱
    1. Rust Cheat Sheets
    2. Learning
    3. Books
    4. Blogs and Forums
    5. Example Code
    6. Videos
    7. Meetings
    8. Companies
  16. Appendices
  17. Index
  18. Index of Examples
  19. Crates (Alphabetic)
  20. Crates (by Category)
  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. Thanks

The Rust How-to Book

Rust Cheatsheets

Cheatsheets
Comparison to Other Languages

Cheatsheets

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

Comparison to Other Languages

  • Rust for C# Developers↗.
  • A Comparison of Rust's Borrow Checker to the one in C#↗.

Related Topics

  • Books.
  • Example Code and Templates.