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

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
主站蜘蛛池模板: 舟山市| 营口市| 三门县| 通江县| 桓台县| 江都市| 铁岭县| 岑巩县| 咸丰县| 永城市| 七台河市| 南宁市| 灯塔市| 青神县| 五台县| 湟源县| 巴南区| 安吉县| SHOW| 内江市| 饶平县| 元氏县| 上林县| 定日县| 北辰区| 桃园县| 手游| 保靖县| 安新县| 景德镇市| 香格里拉县| 滦平县| 龙岩市| 衡阳县| 江安县| 苍溪县| 镇雄县| 罗城| 定襄县| 嘉义市| 延津县|