Rust / Basic
Rust โ Basic
Build and model safe Rust programs with explicit ownership and validated data.
What you will learn
- Explain ownership and failure contracts for this levelโs abstractions.
- Solve worked exercises and verify complete examples independently.
Cargo, editions, and program structure
Build a reproducible Rust package, separate compiler and package-manager responsibilities, and read program output independently from build diagnostics.
Start learningTypes, expressions, and control flow
Represent values deliberately, choose arithmetic policies, and turn boundary requirements into branches and terminating loops.
Start learningOwnership, moves, and functions
Track who owns each value as variables and function calls transfer it, and choose copying or cloning only when the required semantics justify it.
Start learningBorrowing, slices, and strings
Use temporary access without transferring ownership, end conflicting borrows before mutation, and treat UTF-8 byte boundaries explicitly.
Start learningStructs, enums, and pattern matching
Model related data and finite states so meaningful operations preserve invariants and match expressions handle every required alternative.
Start learningCollections and validated input
Store owned sequences and keyed values, distinguish parsing from domain validation, and avoid depending on collection iteration order that is not promised.
Start learning