Control flow in Rust: If, Match, loop, while, for - Full Crash Rust Tutorial for Beginners

preview_player
Показать описание
Welcome to the Full Crash Rust Tutorial for Beginners

In this lesson, we'll cover the basic control flow in Rust. We'll cover the following topics:

if expressions
match
loop expressions
while expressions
for expressions
At the end, we'll have a simple exercise to practice what we've learned.

🦀 All the lessons:

0:00 Control flow - Basic example
0:35 let-if construct, nested ifs, AND and OR operators
3:23 Match construct
5:02 Loop `loop`, return values from loops
6:50 While loop
7:39 For loop, loops in range
9:15 FizzBuzz example (with solution)
10:22 Recap
Рекомендации по теме
Комментарии
Автор

0:00 Control flow - Basic example
0:35 let-if construct, nested ifs, AND and OR operators
3:23 Match construct
5:02 Loop `loop`, return values from loops
6:50 While loop
7:39 For loop, loops in range
9:15 FizzBuzz example (with solution)
10:22 Recap

francescociulla
Автор

What's wait for 1 second ? in 7:15, It sounds cool but didn;t got what the statement says :(

Neboxa