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

Going Further with Advanced Rust

There are no doubts as to the difficulties that the Rust language poses to the avid learner. However, if you are reading this, you have gone further than most and invested the time needed to improve. The language and the way it forces you to think about memory is going to introduce new concepts into your programming habits. Rust does not necessarily provide new tools to accomplish things, but the borrowing and ownership rules help us to concern ourselves more with scopes, lifetimes, and freeing memory appropriately, regardless of the language. Hence, let's go deeper into more advanced concepts in Rust in order to complete our understanding of the language – when, why, and how to apply concepts such as the following:

  • Creating meaningful numbers with enums
  • There is no null
  • Complex conditions with pattern matching
  • Implementing custom iterators
  • Filtering and transforming sequences efficiently
  • Reading memory the unsafe way
  • Shared ownership
  • Shared mutable ownership
  • References with explicit lifetimes
  • Enforcing behavior with trait bounds
  • Working with generic data types
主站蜘蛛池模板: 永寿县| 黄大仙区| 福州市| 通辽市| 甘洛县| 夏河县| 元氏县| 龙海市| 长岛县| 广宁县| 贵阳市| 岳阳市| 台江县| 大安市| 高邑县| 青海省| 岑溪市| 岑溪市| 扶余县| 叶城县| 龙门县| 桐乡市| 温宿县| 兰考县| 山阴县| 庆阳市| 大埔县| 高碑店市| 宣城市| 刚察县| 安庆市| 沙雅县| 崇义县| 涿鹿县| 日照市| 景泰县| 玉山县| 汉中市| 乌海市| 安塞县| 天台县|