Intro to Rust Control Flow Statements & Conditional Expressions 🦀
4,008
Published 2023-08-18
We'll specifically be looking at the if, else if, and else statements for starters. Then we'll move onto the while statement, and the loop statement.
🤯 Rust Programming Playlist 🦀 • Rust Programming Tutorial 🦀
📖 Rust Control Flow: doc.rust-lang.org/book/ch03-05-control-flow.html
📖 Rust Reference - Loops: doc.rust-lang.org/reference/expressions/loop-expr.…
📖 Rust By Example - Loop: doc.rust-lang.org/rust-by-example/flow_control/loo…
Visual Studio Code ➡️ code.visualstudio.com/
Rust Website ➡️ rust-lang.org/
Rustup Installer ➡️ rustup.rs/
Rust Docs ➡️ doc.rust-lang.org/book
Please follow me on these other social channels!
➡️ trevorsullivan.net/
➡️ github.com/pcgeek86
➡️ twitter.com/pcgeek86
➡️ youtube.com/trevorsullivan
➡️ facebook.com/trevorsoftware
➡️ tiktok.com/pcgeek86
All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names,trademarks and brands does not imply endorsement.
#opensource #software #linux #devops #programming #rusty #rustdev #dev #coding #codinglife #code #coder #ubuntu #ubuntulinux #appdev #rustlang #rust #developer
All Comments (20)
-
Went through lot of tutorials, you are the best guide .
-
Enjoying this series thoroughly 😊
-
Simply the best Rust tutorial that I have seen. I would LOVE to see a future Embassy PicoW embedded series from scratch working with TLS and BLE with security rather than just unsecured. Something like that would be ground breaking. Thank you for your work Trevor!
-
Thank you 🙏 this series is really great. Love your non nonsense approach.
-
Been learning rust as of recently I've went through multiple rust sources and I really like your content. I hope to learn more so I can reach a production level with this language thank you..
-
Trying to learn Rust from the ground up and the content you provided is good for a beginner~~
-
Thanks again Trevor!
-
Another great video!
-
GOLD MINE!!!
-
Great
-
I'm working through the playlist and it's been fantastic so far. Perhaps you cover this later but do you end up diving more into all the versions of "strings"? String pointers, slices, reference, mutable reference, different ways to create strings, etc. Or as a concrete example, what is happening on this line `let myinput: &mut String = &mut String::from("");` Looking at it, I sorta get it, but I definitely couldn't explain it, or create it on my own. Looking forward to the rest of the series! 👍
-
GASP!! Rust? if you learn it I follow Trevor !! What can it do? is it useful as C# ?
-
Great series. Can you clarify how to find module vs function? Like when do we do :: and how do we know it's a method. For example myinput.parse::
().unwrap(); -
Not sure if its because I am coding on windows, but replace \n with "" does not seem like good practice. Instead use the trim() method. The line will then look like this: let age: u8 = entered_age.trim().parse::
().unwrap(); -
Show us backend with Rust, like rest and graphql
-
let age_to_drive: u8 = 16u8; let age_to_drive: u8 = 16; both are same or they have some difference?
-
Awesome but, how did you access the crab emoji so quickly lol
-
By coming this far, I realized that Rust is the world's most bullshit programming language ever!
-
Hello you are going more advance I do not understand some code Explain some concept better