Master Rust Collections: Vectors, Enums, and Iteration - Full Crash Rust Tutorial for Beginners

preview_player
Показать описание
In this lesson, we dive deep into the world of Rust collections, focusing on Vectors. We'll start by explaining what a Vector is and how to create one in Rust. Next, we'll cover essential Vector methods like push and pop, and demonstrate how to read elements by index and using the get method. You'll also learn how to iterate over Vector values efficiently and how to store multiple types using enums. Finally, we'll discuss the lifecycle of a Vector and what happens when it is dropped.

Match

0:00 Collections in Rust
0:41 What is a Vector in Rust - How to create a Vector
1:48 Vector methods: push and pop
3:14 Reading elements in a Vector: by index and using the get method
5:43 Iterating over the Values in a Vector
7:34 How to store multiple Types using enums
9:36 Dropping a Vector drops its elements
10:00 Conclusion
Рекомендации по теме
Комментарии
Автор

I don't think you never know how much you are helping me to get into rust

jostasizzi
Автор

i am a javascript developer and now want to learn new futuristic language,
should I learn rust or go, I have heard Rust is very difficult but its worth it because not many developers available right now

irfansaeedkhan