Rust Programming Tutorial #24 - Vectors

preview_player
Показать описание
Today I talk about Vectors in Rust - basically just a beefed up array. You can use them to store a bunch of related data and easily add/remove items.

For more information on Vectors, refer to the Rust documentation at:

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

mut is useful in making the language more safe

Take_it_E-z
Автор

Excellent tutorials. They’re very concise and well put together. I feel the language is a little over engineered; it’s more complicated than it needs to be but if you have comparable tutorials in other languages, I look forward to watching them.

kyleeames
Автор

Hi! Thank a lot for your tutorials. I have a question though regarding Vectors. Is there any approach to use push method to add a Struct items into Vec and iterate through this array?

nissanovod
Автор

the dog in the background want to learn rust..

_slier
Автор

Following the tutorial, so far, so good

isrj
Автор

I always see this kind of tutorials. Initializing a vector, adding, retrieving, deleting record all inside a single function. Is there a way to separate those functions like this in Java? How should we implement the same behavior?

class Person {
private final String name;
private final int age;
private final List<Address> addresses = new ArrayList<>();

Person (name, age) {
this.name = name;
this.age = age;
}

void addAddress(Address newAddress) {

}
}

elyu_vibes
Автор

closed right away. (who tf uses light mode?)

aaqidmasoodi