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

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
主站蜘蛛池模板: 滦平县| 平舆县| 西乌| 永和县| 宁夏| 彰化市| 田阳县| 平舆县| 河西区| 会同县| 沛县| 西宁市| 浦城县| 青铜峡市| 鹤壁市| 光泽县| 牟定县| 文水县| 龙岩市| 泰安市| 沾益县| 棋牌| 永修县| 伊吾县| 朝阳县| 长沙县| 梧州市| 宜宾县| 北川| 靖宇县| 思茅市| 林周县| 长葛市| 海伦市| 体育| 巴里| 阳新县| 桦甸市| 泾川县| 明溪县| 马边|