MENU

Fun & Interesting

Popular Rust Iterator Methods 🦀

Trevor Sullivan 10,199 lượt xem 1 year ago
Video Not Working? Fix It Now

Rust iterators are incredibly powerful, allowing you to manipulate collections of various data structures. Because the Iterator Trait defines this functionality, these useful methods can be found on any custom types that implement it. While we don't have enough time to cover *all* of these methods, we will explore some of the more common methods, and spend some hands-on time with them.

For example, we can take a second iterable collection, and .chain() it to the first one. We can also .zip() collections together into tuple types. You can perform filters, data transformations, and much more, using the Rust iterator methods. I strongly encourage you to spend some time using these methods, to ensure that you understand how they work, when you actually need them.

🤯 Rust Programming Playlist 🦀 https://www.youtube.com/playlist?list=PLDbRgZ0OOEpUkWDGqp91ODn0dk7LPBAUL

📖 Rust Iterator docs ➡️ https://doc.rust-lang.org/std/iter/trait.Iterator.html

Visual Studio Code ➡️ https://code.visualstudio.com
Rust Website ➡️ https://rust-lang.org
Rustup Installer ➡️ https://rustup.rs
Rust Docs ➡️ https://doc.rust-lang.org/book

Please follow me on these other social channels!

➡️ https://trevorsullivan.net
➡️ https://github.com/pcgeek86
➡️ https://twitter.com/pcgeek86
➡️ https://youtube.com/trevorsullivan
➡️ https://facebook.com/trevorsoftware
➡️ https://tiktok.com/pcgeek86

All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names,trademarks and brands does not imply endorsement.

#rustlang #rust #rustdev #opensource #software #linux #devops #programming #rusty #dev #coding #codinglife #code #coder #ubuntu #ubuntulinux #appdev #developer

Comment