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. Enumerations
    14. Traits
    15. impl Trait
    16. Trait Objects and Dynamic Dispatch
    17. Iterators
    18. Generics
    19. Attributes
    20. Macros
  6. Standard Library
    ❱
    1. Optional Values
    2. Recoverable Error Handling
    3. Default Values
    4. Value Comparison
    5. Smart Pointers
      ❱
      1. Heap Storage
      2. Reference Counting
      3. Interior Mutability
      4. Clone-on-Write
      5. Memory Address Pinning
    6. Resource Cleanup
    7. Conversion Traits
    8. Reference-to-reference Conversions
    9. Borrowed Types
    10. Automatic Trait Derivation
    11. Operators
    12. Dynamic Typing
  7. Code Organization
    ❱
    1. Modules and Paths
    2. Visibility
    3. use Declarations
    4. Dependencies
    5. Code Organization by Project Type
    6. Naming Conventions
  8. Code Examples by Category
  9. Algorithms
    ❱
    1. Random Value Generation
    2. Sorting
    3. Hashing
  10. Data Structures
    ❱
    1. Strings
    2. Vectors
    3. HashMaps
    4. Other Maps
    5. B-Trees
    6. Stacks and Queues
    7. Binary Heaps
    8. Linked Lists
    9. Bit Arrays
    10. Graphs
    11. Heapless Data Structures
    12. Stack-allocated Arrays
    13. Unique Identifiers
  11. File System
    ❱
    1. Paths
    2. File Reading and Writing
    3. Directories
    4. Directory Traversal
    5. File Metadata
    6. Working with the Standard Input and Output
    7. File Watching
    8. Temporary Files and Directories
    9. User Directories and Preferred Applications
    10. Symbolic Links
  12. Mathematics
    ❱
    1. Linear Algebra
    2. Trigonometry
    3. Complex Numbers
    4. Statistics
    5. Additional Numeric Types
  13. Resources
  14. Crate Selection
    ❱
    1. Current State of the Art
  15. Links
    ❱
    1. Rust Cheat Sheets
    2. Learning Rust
    3. Books
    4. Blogs and Forums
    5. Example Code
    6. Videos and Podcasts
    7. Meetings
    8. Rust Companies and Jobs
  16. Indices
  17. Index
  18. Index of Examples
  19. Crates (Alphabetic)
  20. Crates (by Category)
  21. Appendices
  22. Contributing
    ❱
    1. Topics of Interest
    2. Repository Structure
    3. Development Environment Setup
    4. Book Editing and Example Code Development
    5. mdBook Pre-processors
    6. Dev Containers and Docker
    7. Documentation Generation
    8. Publication to crates.io
  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.