Lets Learn Rust - 9 - Understanding Tuples

1 month ago
5

G'day guys

In this video I talk about our first compound type in Rust. The Tuple. The tuple allows us to group multiple values together.

I show you how to create one, then how to get the values of one using both the tuple index approach and using the destructuring approach. Lastly I show you how you can mutate a Tuple.

Important Times

00:00 - Introduction
00:42 - What are compound types?
00:55 - What is a Tuple?
01:27 - Declaring and instantiating a Tuple
04:25 - Getting data using Tuple indexes
08:15 - Getting data using destructuring
10:21 - Dealing with mutation
12:20 - Conclusion

Loading 1 comment...