Back to Browse

πŸ” Code With Me in Rust: Arrays and Vectors

152 views
May 27, 2025
40:27

Continuing in my exploration of Rust. This time, I'm playing with arrays and vectors. Along the way, we play with - passing arrays into functions with and without slices, - other array operation - vectors (creating, pushing and popping, slices) - the "optional" returned from get on a vector - iterating over a vector I even look at memory to see exactly how rust is passing those parameters. πŸ”— Resources: A Gentle Introduction to Rust: https://stevedonovan.github.io/rust-gentle-intro/ Rust By Example - Vectors: https://doc.rust-lang.org/rust-by-example/std/vec.html πŸ“Œ Chapters: 00:00 Introduction 01:56 Arrays 02:32 The type of an array is two things 04:51 Passing a slice into a function 09:45 How Rust is storing our parameters 14:52 Digression into "debug print" 15:31 Arrays of arrays 17:00 Other array slice operations 17:56 Basic vector operations 19:54 Going off the end of a vector 20:18 The Optional from using get() 24:33 Vector push and pop 25:30 Vectors and slices 32:03 Ways to create a vector 34:11 Iterating over a vector 38:27 Conclusion Don't forget to like, subscribe, and hit the bell icon for more programming explorations! πŸ‘ If this helped you think like a developer, hit like, subscribe, and tap that bell πŸ”” so you don’t miss the next part! CHECK OUT MY OTHER VIDEOS: Rust Programming Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9AjYwkudkKvO0yHX3zv3sDV2 C Programming Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9Ag0CZdGTUm3FWhBDX28B0Dj Intro to Java Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9Ajo6LH_-g7dXjZemaQ5QXnV Software Engineering Topics Playlist: https://www.youtube.com/playlist?list=PLZLC5AM_r9AgMHq42vUXHkXEws3JWdnDb

Download

0 formats

No download links available.

πŸ” Code With Me in Rust: Arrays and Vectors | NatokHD