- 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.
推薦閱讀
- SQL Server 從入門到項目實踐(超值版)
- Advanced Splunk
- Raspberry Pi for Python Programmers Cookbook(Second Edition)
- Python數據分析基礎
- C語言程序設計(第2版)
- Python測試開發入門與實踐
- Unity Shader入門精要
- PHP+MySQL+Dreamweaver動態網站開發實例教程
- C++面向對象程序設計習題解答與上機指導(第三版)
- Learning OpenStack Networking(Neutron)
- 深入淺出React和Redux
- Java Web開發就該這樣學
- UNIX Linux程序設計教程
- HoloLens與混合現實開發
- 智能手機故障檢測與維修從入門到精通