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

  • Learning Rust
  • Paul Johnson Vesa Kaihlavirta
  • 108字
  • 2021-07-02 23:07:25

Remember, Remember

One of the main advantages of using Rust over the likes of C is its memory management. For example, C programs will run into buffer overruns and associated undefined behavior if you attempt to write past the end of an array or past an area reserved using malloc. Rust protects against most of these problems without compromising on efficiency.

In this chapter, we will delve into how Rust handles memory and will cover the following topics:

  • Understanding the memory system used within Rust
  • How it can go wrong if you're not careful
  • Looking at pointers, references, stack overflows, and preventing crashes
  • Allocating and freeing up memory
主站蜘蛛池模板: 涟源市| 宁城县| 康定县| 酒泉市| 思南县| 凭祥市| 南丰县| 城固县| 广东省| 台中市| 定安县| 玉龙| 葵青区| 金沙县| 泰兴市| 临夏县| 海城市| 开阳县| 内丘县| 凌云县| 博乐市| 广水市| 泸州市| 原平市| 无锡市| 贵港市| 霍城县| 景东| 扎赉特旗| 江西省| 鹤峰县| 阜南县| 汾西县| 开阳县| 胶州市| 乾安县| 河西区| 托克逊县| 万源市| 凤阳县| 洱源县|