Category: Rust

0

Chapter 11: Rust Booleans

Rust Booleans Booleans are one of the simplest yet most powerful parts of any programming language — they answer yes/no, on/off, true/false questions that control almost everything in your code (if statements, loops, flags,...

0

Chapter 12: Rust If .. Else

Rust If .. Else — one of the most fundamental ways to make decisions in code. In Rust, we call them if expressions (not just statements) because they can return values — that’s a...

0

Chapter 13: Rust Match

Rust match — perfect timing because match is basically Rust’s super-powered upgrade to switch/if-else chains. In Rust, match is one of the most loved and most powerful features. People call it “pattern matching on...

0

Chapter 14: Rust Loops

Rust Loops. Loops are how we tell the computer: “Hey, repeat this block of code many times — until something tells you to stop!” Rust gives you three main loop kinds, each with its...

0

Chapter 15: Rust While Loops

 Rust while loops The while loop is probably the one that feels most familiar if you’ve programmed in C, Java, Python, JavaScript, etc. It’s very straightforward: “As long as this condition is true, keep...

0

Chapter 16: Rust For Loop

Rust for loops The for loop is Rust’s most idiomatic and most frequently used loop (in real projects written in 2025–2026, for appears in ~60–80% of all loop situations). Why? Because Rust turns almost...

0

Chapter 17: Rust Functions

Rust Functions. This is a big milestone! Functions are where code starts to become reusable, organized, and real-world useful. In Rust, functions feel very clean and strict — types everywhere, explicit returns, no hidden...

0

Chapter 18: Rust Scope

Rust Scope. This is a very important topic because scope is the foundation of ownership, borrowing, lifetimes, dropping resources, and almost all memory safety in Rust. Many beginners mix up “scope” with “lifetime” or...

0

Chapter 19: Rust Strings

Rust Strings. This is one of the topics where almost every new Rust learner says: “Wait… why two types? Why not just one like in Python or Java?” Rust has two main string types:...

0

Chapter 20: Rust Ownership

Rust — Ownership. If you understand ownership + borrowing + lifetimes, then 80–90% of “why Rust feels strict but safe” suddenly makes sense. Many people struggle with it for 1–4 weeks… then one day...