Using slices in Rust is pretty powerful!
Slices is an easy yet powerful concept you must know in Rust! If you also want to understand the differences between String and &str, feel free to check out this video here: https://youtu.be/2Lzhx1_CTy8 📝 Description Discover the power of slices in Rust - a fundamental feature that allows you to reference parts of collections without copying data! In this tutorial, you'll learn everything you need to know about working with slices efficiently. Here's what we'll cover: • Understanding what slices are and why they're important • Working with array slices and string slices • Using mutable slices to modify collections • A practical example with a text analyzer implementation ⏳ Timestamps: 00:00 - Introduction 01:02 - Example 1 04:27 - Example 2 05:47 - Example 3 07:25 - Use Case 14:20 - Outro Corrections: 11:28 The function should also be called `get_words_in_range.` 11:40 There is a more efficient way to implement this logic. I just wanted to demonstrate the slicing functionality. Check the comment for a possible solution. 👋 Hey there! If you are new to this channel: Hey 👋 my name is Flo and I am a professional software engineer with a passion for coding in Golang, TypeScript, JavaScript, and Rust. This channel is where I share that passion and dive into the exciting world of software engineering. Plus, I love using emojis and paper-based animations (so have a look for that if you want to find my videos). 📨 Support and Connect! Become a member. https://www.youtube.com/@FloWoelki/membership Discord: https://discord.gg/TnA7drJ X / Twitter: https://x.com/FlorianWoelki LinkedIn: https://www.linkedin.com/in/florian-woelki/ GitHub: https://github.com/FlorianWoelki #rust #slices #arrays
Download
0 formatsNo download links available.