Lets Learn Rust - 4 - Rust Variables Part 1

29 days ago
8

G'day guys

In this video I talk about the basics of variables in Rust. Starting with how to declare and initialize one, both implicitly and explicitly. Then how to define a mutable variable using the mut keyword.

I also talk about some of the compiler issues you might run into when using variables in Rust in a particular way. Some of these issues are different to that of other programming languages like Javascript, Python etc.

Important Times

00:00 - Introduction
00:28 - Declaring and Initializing Variables
02:25 - Dealing with Unused Variables
03:18 - Using Variables in Print Statements
04:53 - Initializing Variables Conditionally
07:56 - Understanding Mutability
10:09 - Conclusion

Loading comments...