- Rust Programming Cookbook
- Claus Matzinger
- 93字
- 2021-06-24 12:27:49
Implementing custom iterators
The true power of a great language is the way in which it lets the programmer integrate with types in the standard library and around the general ecosystem. One way to do this is the iterator pattern: defined by the Gang of Four in their book Design Patterns (Addison-Wesley Professional, 1994), an iterator is an encapsulation of a pointer moving through a collection. Rust provides a range of implementations on top of the Iterator trait. Let's see how we can leverage that power with only a few lines of code.
推薦閱讀
- Facebook Application Development with Graph API Cookbook
- 新編Premiere Pro CC從入門到精通
- Hands-On JavaScript High Performance
- Mastering Swift 2
- The DevOps 2.4 Toolkit
- MySQL數據庫基礎實例教程(微課版)
- Kinect for Windows SDK Programming Guide
- Oracle Exadata專家手冊
- RabbitMQ Cookbook
- Programming with CodeIgniterMVC
- Julia for Data Science
- 響應式Web設計:HTML5和CSS3實戰(第2版)
- SQL Server 2008 R2數據庫技術及應用(第3版)
- 從0到1:HTML5 Canvas動畫開發
- 從零開始學Android開發