Rust

Core Concepts of Rust

A practical guide to Rust's core concepts — ownership, borrowing, lifetimes, structs, enums, error handling, and the mental models that make the borrow checker click.

Rust's Match Expression: Complete Guide

A complete guide to Rust's match expression — basic syntax, exhaustiveness, destructuring structs/enums/tuples/slices, guards, @ bindings, let-else, matches! macro, and real-world …

A Deep Dive into Strings in Rust

A complete guide to strings in Rust — the difference between String and &str, UTF-8 handling, string operations, formatting, parsing, Cow, and common patterns.

Advanced Functions and Closures in Rust

A deep dive into advanced Rust function and closure features — function pointers, the Fn trait hierarchy, higher-order functions, returning closures, function composition, and …

Advanced Traits in Rust

A complete guide to advanced trait features in Rust — associated types, operator overloading, fully qualified syntax, supertraits, blanket implementations, marker traits, and …

Advanced Types in Rust

A complete guide to Rust's advanced type system — newtype pattern, type aliases, the never type, dynamically sized types, Sized and ?Sized, PhantomData, and type-level programming …

Procedural Macros in Rust

A complete guide to Rust procedural macros — custom derive, attribute-like, and function-like macros using syn and quote, with real-world examples including a Builder derive and a …

Writing Unsafe Rust

A practical guide to unsafe Rust — the five unsafe superpowers, raw pointers, FFI, static mut, unsafe traits, unions, and how to write safe abstractions over unsafe code.

Iterators in Rust

A complete guide to Rust iterators — the Iterator trait, all major adapters, chaining, custom iterators, performance considerations, and common real-world patterns.

Object-Oriented Programming in Rust

How Rust implements OOP concepts — encapsulation via structs and modules, polymorphism via trait objects, composition over inheritance, and how common OOP design patterns translate …

Closures in Rust

A complete guide to closures in Rust — syntax, capture modes, Fn/FnMut/FnOnce traits, move semantics, returning closures, and real-world patterns with iterators and threads.

Traits in Rust

A complete guide to Rust traits — defining and implementing traits, default methods, trait bounds, impl Trait, dyn Trait, trait objects, the orphan rule, and common standard …

Collections in Rust

A complete guide to Rust's standard library collections — Vec, String, HashMap, HashSet, BTreeMap, VecDeque, and BinaryHeap — with practical patterns and performance notes.

Enums and Pattern Matching in Rust

A complete guide to Rust enums and pattern matching — defining enums with data, Option, Result, match exhaustiveness, guards, destructuring, if let, while let, and real-world …

Generic Types in Rust

A complete guide to generics in Rust — generic functions, structs, enums, methods, trait bounds, where clauses, const generics, monomorphization, and real-world usage patterns.