Rust 1.26 版本发布,系统编程语言

栏目: 编程语言 · Rust · 发布时间: 6年前

内容简介:Rust 1.26 版本发布。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。主要更新内容如下:语言

Rust 1.26 版本发布。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。主要更新内容如下:

语言

  • 现在 Closures 实现了 Copy and/or Clone

  • Inclusive range 语法,如 for x in 0..=10 现可用

  • Stablise '_ . The underscore lifetime can be used anywhere where a lifetime can be elided.

  • impl Trait is now stable allowing you to have abstract types in returns or in function parameters. e.g.  fn foo() -> impl Iterator<Item=u8> or  fn open(path: impl AsRef<Path>) .

  • Pattern matching will now automatically apply dereferences.

  • 128-bit integers in the form of u128 and  i128 are now stable.

  • main can now return  Result<(), E: Debug> in addition to  () .

  • A lot of operations are now available in a const context. E.g. You can now index into constant arrays, reference and dereference into constants, and use Tuple struct constructors.

更多内容

下载地址:


以上所述就是小编给大家介绍的《Rust 1.26 版本发布,系统编程语言》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

软件架构设计

软件架构设计

温昱 / 电子工业出版社 / 2012-7 / 39.00元

《软件架构设计:程序员向架构师转型必备(第2版)》围绕“软件架构设计”主题,从“程序员”成长的视角,深入浅出地讲述了架构师的修炼之道。从“基础篇”、到“设计过程篇”、到“模块划分专题”,《软件架构设计:程序员向架构师转型必备(第2版)》覆盖了架构设计的关键技能项,并且对于架构设计过程中可能出现的各种问题给与了解答。一起来看看 《软件架构设计》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具