Rust Playground
Write any Rust code and run it in your browser.
All lessons
- Hello, Rust!
- Variables & Mutability
- Data Types
- Functions
- Control Flow
- Ownership
- References & Borrowing
- Structs
- Enums
- Pattern Matching
- Error Handling
- Collections
- Traits
- Generics
- Lifetimes
- Closures & Iterators
- String Types
- Modules & Visibility
- Smart Pointers
- Concurrency