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

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!

主站蜘蛛池模板: 开化县| 池州市| 教育| 乐清市| 兴城市| 普兰店市| 夏河县| 甘泉县| 香格里拉县| 陇南市| 汨罗市| 漯河市| 尼勒克县| 阳西县| 高台县| 云安县| 沁源县| 日照市| 天气| 荔浦县| 多伦县| 施甸县| 沭阳县| 德昌县| 延安市| 阿拉善右旗| 永仁县| 龙井市| 甘洛县| 乡城县| 太保市| 石楼县| 兴和县| 宣武区| 开原市| 揭东县| 宜丰县| 长沙县| 龙山县| 井研县| 万源市|