7. Vec, Array and Slice

Published: 20 April 2021
on channel: 300 seconds of Rust
5,907
190

Arrays, Vectors and Slices

Creating a vector
Adding values to a vector
Removing values from a vector
Resizing a vector
Creating an array
Slices

Resources:
https://doc.rust-lang.org/std/primiti...
https://doc.rust-lang.org/std/primiti...


Note: At the 3min mark, this is not quite a shorthand, as using the `vec` macro will create a Vector with a capacity set to the number of elements if elements are given, so it's more like using `Vec::with_capacity` and pushing values. However if no elements are specified it's the same as using `Vec::new`


On this page of the site you can watch the video online 7. Vec, Array and Slice with a duration of hours minute second in good quality, which was uploaded by the user 300 seconds of Rust 20 April 2021, share the link with friends and acquaintances, this video has already been watched 5,907 times on youtube and it was liked by 190 viewers. Enjoy your viewing!