- Mastering Rust
- Rahul Sharma Vesa Kaihlavirta
- 115字
- 2021-07-02 13:35:17
Collections
It's often the case that your program has to process more than one instance of data. For that, we have collection types. Depending on what you want and where your data resides in memory, Rust provides many kinds of built-in types to store a collection of data. First, we have arrays and tuples. Then, we have dynamic collection types in the standard library, of which we'll cover the most commonly used ones, that is, vectors (list of items) and maps (key/value items). Then, we also have references to collection types, called slices, which are basically a view into a contiguous piece of data owned by some other variable. Let's start with arrays first.
推薦閱讀
- 零基礎學Visual C++第3版
- JavaScript全程指南
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- Python 3網絡爬蟲實戰
- Cassandra Data Modeling and Analysis
- 學習正則表達式
- PySpark Cookbook
- Machine Learning in Java
- Mastering Apache Storm
- Arduino可穿戴設備開發
- After Effects CC案例設計與經典插件(視頻教學版)
- 計算機組裝與維護(第二版)
- Android嵌入式系統程序開發(基于Cortex-A8)
- Flink入門與實戰
- Computer Vision with Python 3