1. Acknowledgements
  2. Introduction
  3. Who should read this book
  4. About this book
  5. About the code
  6. Online resources
  7. Part I - Fundamentals of Rust
  8. 1. Chapter 1
    1. 1.1. Learning Rust by comparing to Ruby
    2. 1.2. Appreciation for Ruby
    3. 1.3. The Case for Rust
    4. 1.4. Getting Started With Rust
      1. 1.4.1. Installation
      2. 1.4.2. Cargo
      3. 1.4.3. Your first compiled Rust code
    5. 1.5. Summary
  9. 2. Chapter 2
    1. 2.1. New Language, New Syntax
    2. 2.2. Is Rust Object Oriented like Ruby?
    3. 2.3. Type System
    4. 2.4. Scalar Types
    5. 2.5. Numbers
    6. 2.6. Booleans
    7. 2.7. Characters
    8. 2.8. Strings
    9. 2.9. References
    10. 2.10. Summary
  10. 3. Chapter 3
    1. 3.1. Variables
    2. 3.2. Control Flow
    3. 3.3. Options
    4. 3.4. Functions
    5. 3.5. Results
    6. 3.6. Ownership
    7. 3.7. Borrowing
    8. 3.8. Summary
  11. 4. Chapter 4
    1. 4.1. Data Types
    2. 4.2. Tuples
    3. 4.3. Arrays
    4. 4.4. Vectors
    5. 4.5. Keymaps
    6. 4.6. HashSets
    7. 4.7. Summary
  12. 5. Chapter 5
    1. 5.1. Structure Types
    2. 5.2. Structs
    3. 5.3. Enums
    4. 5.4. Generics
    5. 5.5. Lifetimes
    6. 5.6. Summary
  13. 6. Chapter 6
    1. 6.1. Code structure
    2. 6.2. Pattern Matching
    3. 6.3. Traits vs Mixins
    4. 6.4. Summary
  14. 7. Chapter 7
    1. 7.1. Errors
    2. 7.2. Panics
    3. 7.3. Summary
  15. 8. Chapter 8
    1. 8.1. Code helpers
    2. 8.2. Debugging
    3. 8.3. Tests
    4. 8.4. Logging
    5. 8.5. Compiler
    6. 8.6. Summary
  16. 9. Chapter 9
    1. 9.1. Project Structure
    2. 9.2. Modules
    3. 9.3. Libraries
    4. 9.4. Summary
  17. 10. Part 2 - Write a Ruby gem in Rust
    1. 10.1. Wrapping Rust in Ruby
    2. 10.2. Project Setup
    3. 10.3. Parsing URLs
    4. 10.4. Native Code compilation
    5. 10.5. Calling Rust from Ruby

From Ruby To Rust

Acknowledgements