- Learning Rust
- Paul Johnson Vesa Kaihlavirta
- 67字
- 2021-07-02 23:07:27
Static memory allocation
While we have the stack and heap, Rust also has another type of memory allocation, that is, statically allocated memory. This is not allocated at runtime, but moves into memory with the program's code before the program is run.
The likes of static and const variables are good examples of static allocations.
Static memory allocation has the same lifetime as that of the application.
推薦閱讀
- iOS 9 Game Development Essentials
- 軟件架構設計:大型網站技術架構與業務架構融合之道
- Manga Studio Ex 5 Cookbook
- 你必須知道的204個Visual C++開發問題
- 深度學習:算法入門與Keras編程實踐
- C++ 從入門到項目實踐(超值版)
- 精通Python自然語言處理
- 青少年Python編程入門
- 程序設計基礎教程:C語言
- Python忍者秘籍
- Python機器學習算法: 原理、實現與案例
- iOS自動化測試實戰:基于Appium、Python與Pytest
- Vue.js 2 Web Development Projects
- SQL Server 2008 R2數據庫技術及應用(第3版)
- Python應用開發技術