Rust Fundamentals
Your first steps in Rust: printing, variables, functions, and the compiler as your pair programmer.
1. Getting started
- Hello, world 10 XP
- Variables and mutability 10 XP
- Printing values 10 XP
- Constants and shadowing 10 XP
2. Functions
- Functions and return values 15 XP
- Expressions and blocks 15 XP
- Returning early 15 XP
3. Primitive typesPro
- Integer types 15 XP
- Floats and casts 15 XP
- Booleans and chars 15 XP
- Tuples 15 XP
- Arrays 20 XP
4. Control flowPro
- if and else 10 XP
- loop and break 10 XP
- while loops 15 XP
- for loops and ranges 15 XP
- Capstone: the clapping game 20 XP
5. OwnershipPro
- Moves 15 XP
- Clone and Copy 15 XP
- Ownership and functions 15 XP
- Capstone: building and returning Strings 20 XP
6. BorrowingPro
- References and borrowing 10 XP
- Mutable references 15 XP
- The borrowing rules 15 XP
- Slices 15 XP
- String slices 20 XP
7. StructsPro
- Defining structs 15 XP
- Methods 15 XP
- Associated functions 15 XP
- Tuple structs and newtypes 15 XP
- Deriving traits 20 XP
8. Enums and pattern matchingPro
- Enums 15 XP
- Enums with data 15 XP
- Match expressions 15 XP
- Option 15 XP
- if let and let-else 20 XP
10. Error handlingPro
- Panic or Result? 15 XP
- The ? operator 15 XP
- Custom error types 15 XP
- Parsing user input 25 XP
11. TraitsPro
- Defining traits 15 XP
- Default methods 15 XP
- Trait bounds 15 XP
- Implementing Display 25 XP