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

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!

主站蜘蛛池模板: 博野县| 玉溪市| 崇信县| 济宁市| 武乡县| 天长市| 滕州市| 新丰县| 攀枝花市| 石狮市| 上虞市| 南汇区| 微山县| 昌乐县| 内丘县| 两当县| 富蕴县| 且末县| 长岛县| 通城县| 固镇县| 南安市| 石家庄市| 城步| 米脂县| 陆川县| 阳高县| 楚雄市| 湖北省| 原阳县| 尼勒克县| 纳雍县| 吉水县| 高青县| 万州区| 平和县| 新宁县| 凤山市| 泗阳县| 丹巴县| 门源|