Latest Articles

Programming

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 …

Programming

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.

Programming

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 …

Programming

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.

Programming

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 …

Programming

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.