Rust / Intermediate

Rust โ€” Intermediate

Design reusable borrowed interfaces, errors, modules, iteration, and tests.

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. Result, errors, and recovery

    Represent expected failure in return types, propagate context deliberately, and distinguish recoverable domain errors from invariant-breaking panics.

    Start learning
  2. Traits, generics, and bounds

    Describe shared behavior with traits and write generic functions whose bounds express the operations they actually require.

    Start learning
  3. Lifetimes and borrowed APIs

    Describe relationships between references without claiming to extend object lifetimes, and choose owned results when a borrow cannot safely escape.

    Start learning
  4. Modules, crates, and documentation

    Organize a Rust package around controlled visibility, explicit dependencies, and examples that can be checked as part of the public contract.

    Start learning
  5. Iterators, closures, and ownership

    Compose lazy iteration with explicit ownership, choose closure captures deliberately, and collect only when a consumer needs an owned result.

    Start learning
  6. Testing, debugging, and repeatable builds

    Turn contracts into boundary tests, reproduce failures with exact build information, and choose diagnostic tools that answer a specific question.

    Start learning
Back to course