官术网_书友最值得收藏!

  • Rust Standard Library Cookbook
  • Jan Nils Ferner Daniel Durante
  • 123字
  • 2021-08-27 19:45:11

Accessing collections as iterators

Welcome to one of the most flexible parts of the Rust standard library. Iterators are, as the name suggests, a way of applying actions of items in a collection. If you come from C#, you will already be familiar with iterators because of Linq. Rust's iterators are kind of similar, but come with a more functional approach to things.

Because they are an extremely fundamental part of the standard library, we are going to dedicate this recipe entirely to a showcase of all the different things you can do with them in isolation. For real-world use cases, you can simply continue reading the book, as a big portion of the other recipes features iterators in some way or another.

主站蜘蛛池模板: 隆林| 五寨县| 沧源| 嵊州市| 墨玉县| 民县| 岫岩| 鹤山市| 武山县| 包头市| 荃湾区| 顺昌县| 扶风县| 翼城县| 大悟县| 比如县| 宿迁市| 泊头市| 阳信县| 曲水县| 临夏市| 瓦房店市| 汪清县| 会昌县| 宣恩县| 武宣县| 大姚县| 惠东县| 广东省| 诏安县| 沛县| 德兴市| 永清县| 太和县| 三河市| 尼玛县| 南陵县| 唐山市| 周至县| 滁州市| 重庆市|