Home / Rust · हिन्दी
Rust
Learn Rust by compiling it: cargo, ownership and borrowing, lifetimes, structs, enums and traits, Result and the ? operator, iterators, fearless concurrency with Send and Sync, and testing with clippy and rustfmt, with real compiler output from Rust 1.99.
Start course →
What you'll learn Set up Rust projects with cargo and write programs using variables, expressions and pattern matching. Explain ownership, moves, borrowing and lifetimes, and fix the compiler errors they produce. Model data with structs, enums, Option, traits and generics. Handle errors with Result, the ? operator and custom error types, and know when panics happen. Use collections, iterators and closures, and write safe concurrent code with threads, Arc, Mutex and channels. Test, lint and format Rust code with cargo test, clippy and rustfmt.
Syllabus Getting Started With Rust Why Rust Hello, World and cargo Crates, Cargo.toml and Modules
Language Basics Variables, Mutability, Shadowing and Types Expressions and Pattern Matching Functions and Modules
Ownership, Borrowing and Lifetimes Ownership and Moves Borrowing With References The Aliasing Rule Lifetimes
Structs, Enums and Traits Structs and impl Blocks Enums, Option and Pattern Matching Traits and Generics
Error Handling Result and the ? Operator Custom Error Types Panics, unwrap and Safe Alternatives
Collections, Iterators and Strings Vec, HashMap and String Iterators and Closures String Slices and Array Slices
Fearless Concurrency Threads, Arc, Mutex and Channels Send and Sync: Data Races at Compile Time Async Rust at a Glance
Testing, Tooling and a Checklist Unit Tests With cargo test clippy and rustfmt A Rust Code Review Checklist