Rust / Basic

Rust โ€” Basic

Build and model safe Rust programs with explicit ownership and validated data.

6 lessons ยท No account required

What you will learn

  • Explain ownership and failure contracts for this levelโ€™s abstractions.
  • Solve worked exercises and verify complete examples independently.
  1. 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 learning
  2. Types, expressions, and control flow

    Represent values deliberately, choose arithmetic policies, and turn boundary requirements into branches and terminating loops.

    Start learning
  3. Ownership, 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 learning
  4. Borrowing, slices, and strings

    Use temporary access without transferring ownership, end conflicting borrows before mutation, and treat UTF-8 byte boundaries explicitly.

    Start learning
  5. Structs, enums, and pattern matching

    Model related data and finite states so meaningful operations preserve invariants and match expressions handle every required alternative.

    Start learning
  6. Collections 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
Back to course