Rust offers performance, reliability, and productivity with fearless concurrency and powerful type systems. Browse the topics below to learn step by step or jump to what you need.
Your first Rust program with cargo and println!.
Scalar and compound types; let, mut, shadowing.
Bindings, mutability, shadowing, and scope.
const vs static; type annotations and immutability.
if/else, match, loops (loop, while, for).
Move semantics, drops, and resource management.
&T and &mut T, aliasing rules, and lifetimes intro.
Elision rules, explicit lifetimes, and structs with refs.
fn signatures, returns, generics, traits bounds.
Named fields, tuple structs, and impl blocks.
Algebraic data types; Option/Result patterns.
match, if let, while let, and destructuring.
Defining behavior, impls, and trait bounds.
Type parameters, trait bounds, and monomorphization.
Vec, String, HashMap, and common methods.
Result, ? operator, thiserror/anyhow overview.
mod, pub, use; crate layout and visibility.
Project creation, dependencies, workspaces, profiles.
Iterator trait, adapters, and consumers.
Capture, Fn/FnMut/FnOnce, and move closures.
Threads, channels, Send/Sync, Arc/Mutex.
async/await, futures, executors, and tokio overview.
macro_rules! and proc-macro overview.
#[test], asserts, test organization, and cargo test.