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

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
主站蜘蛛池模板: 鄂托克旗| 北川| 湖南省| 德保县| 武宁县| 阳曲县| 财经| 远安县| 叶城县| 四平市| 余姚市| 聊城市| 西青区| 天峨县| 鹤山市| 淳安县| 张北县| 兰考县| 临澧县| 桐梓县| 蓬溪县| 山东省| 太原市| 岗巴县| 会昌县| 连平县| 新竹县| 富川| 阳城县| 延安市| 苏尼特右旗| 乌什县| 萨嘎县| 樟树市| 中卫市| 额尔古纳市| 荣昌县| 孟连| 综艺| 大同市| 沾益县|