← All tutorials

Skill Zuno · skillzunos.com · Fullstack

Rust tutorial

Learn Rust on Skill Zuno. This Rust tutorial covers New, Easy, Medium, Hard, and Diff levels so you can study practical Rust problems on skillzunos.com.

Open Rust on Skill Zuno

Also see the Rust interview questions.

Rust is a compiled systems language that guarantees memory safety without a garbage collector. Its ownership and borrowing rules are checked at compile time, which also prevents data races. Rust interviews focus on ownership, borrowing, lifetimes, traits, error handling with Result and safe concurrency.

Rust topics covered

  • Ownership, moves and the Copy trait — How values move between variables, and which types are copied instead.
  • Borrowing: shared and mutable references — The rules that let the compiler prevent dangling pointers and data races.
  • Lifetimes and lifetime elision — Telling the compiler how long references are valid, and when it works this out for you.
  • Structs, enums and pattern matching — Modelling data with enums that carry values, and handling every case with match.
  • Traits, generics and trait objects — Sharing behaviour across types, static versus dynamic dispatch, and dyn Trait.
  • Error handling with Result, Option and the ? operator — Rust's approach to errors without exceptions, and propagating them concisely.
  • Smart pointers: Box, Rc, Arc and RefCell — Heap allocation, shared ownership and interior mutability, and when each is needed.
  • Concurrency with threads, Send, Sync and async — Fearless concurrency: what the compiler checks, and an introduction to async Rust.

What you can learn

  • Rust tutorial for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack topics alongside Rust on skillzunos.com

More Fullstack tutorials

All tutorials