- 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.
推薦閱讀
- iOS Game Programming Cookbook
- 程序設計與實踐(VB.NET)
- 軟件項目管理(第2版)
- Learning Bayesian Models with R
- Apache Spark Graph Processing
- Elasticsearch for Hadoop
- Apache Kafka Quick Start Guide
- Java系統化項目開發教程
- NoSQL數據庫原理
- ExtJS Web應用程序開發指南第2版
- 分布式數據庫原理、架構與實踐
- Hacking Android
- Drupal 8 Development Cookbook(Second Edition)
- 例說FPGA:可直接用于工程項目的第一手經驗
- Spring Boot 2+Thymeleaf企業應用實戰