1. Intro
  2. 1. Getting Started with Rust
  3. 2. Where to exercise
  4. 3. Where to be informed on news and updates
  5. 4. Interacting with Rustacean Communities
  6. 5. Additional learning Resources
  7. 6. Curious Facts
  8. 7. py2rs: Glossary of terms
  9. 8. py2rs: General fact comparison
  10. 9. py2rs: Environment Tools
  11. 10. py2rs: Libraries and Frameworks
  12. 11. py2rs: Applications
  13. 12. py2rs: Useful Crates
  14. 13. py2rs: Code comparison Python X Rust implementations
    ❱
    1. 13.1. Creating a new project
    2. 13.2. Installing new libraries/crates
    3. 13.3. Hello World
    4. 13.4. Types and Declarations
    5. 13.5. Define a function
    6. 13.6. List/Slice
    7. 13.7. Dict/Map
    8. 13.8. Set/HashSet
    9. 13.9. While and For loops
    10. 13.10. Files
    11. 13.11. Exceptions/Return Error
    12. 13.12. Concurrency
    13. 13.13. Communicating between threads
    14. 13.14. Sorting
    15. 13.15. Web app with Flask / Rocket
    16. 13.16. HTTP Request with error handling
    17. 13.17. Multithreaded HTTP Crawler
    18. 13.18. Encode and Decode JSON
    19. 13.19. Object Orientation
    20. 13.20. Print Object for Debug/Log
    21. 13.21. Operator Overloading
    22. 13.22. Template for new examples
  15. 14. Credits

py2rs

Show me The code

From Python to Rust by examples

You can copy-paste and run the Rust examples in https://play.rust-lang.org/ and Python in https://repl.it/languages/python3

  • Creating a new project
    • Installing new libraries/crates
    • Hello World
    • Types and Declarations
    • Define a function
    • List/Slice
    • Dict/Map
    • Set/HashSet
    • While and For loops
    • Files
    • Exceptions/Return Error
    • Concurrency
    • Communicating between threads
    • Sorting
    • Web app with Flask / Rocket
    • HTTP Request with error handling
    • Multithreaded HTTP Crawler
    • Encode and Decode JSON
    • Object Orientation
    • Print Object for Debug/Log
    • Operator Overloading
    • Template for new examples