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

The 2018 edition

Rust in the 2015 edition is essentially the 1.0 version with a few non-breaking additions. Between 2015 and 2018, however, features and Requests for Comments (RFCs), Rust's way of changing core features with the community, accumulated, and worries about backward compatibility arose.

With the goal of keeping this compatibility, editions were introduced and, with the first additional edition, many major changes made it into the language:

  • Changes to the module path system
  • dyn Trait and impl Trait syntax
  • async/await syntax
  • Simplifications to the lifetime syntax

With these additions, Rust will introduce asynchronous programming into its syntax (async/await keywords) and improve the language's usability. This book uses the Rust 2018, released on December 6, 2018 (https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html) edition by default, so all the following snippets will already include these new language features!

主站蜘蛛池模板: 商都县| 吉水县| 儋州市| 通山县| 环江| 兖州市| 德江县| 乐昌市| 敦化市| 斗六市| 商水县| 迁安市| 孟津县| 寿阳县| 勃利县| 商南县| 衡水市| 安乡县| 娄烦县| 武功县| 洞头县| 鹿邑县| 漳平市| 南投县| 信宜市| 阳泉市| 邹平县| 通海县| 康平县| 桦南县| 全州县| 苗栗市| 恩平市| 陆良县| 读书| 双牌县| 汤阴县| 德钦县| 桃源县| 吴江市| 牟定县|