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 版本发布,系统编程语言》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

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

智能家居:商业模式+案例分析+应用实战

智能家居:商业模式+案例分析+应用实战

陈国嘉 / 人民邮电出版社 / 2016-4 / 49.80元

作为万物互联的关键一环,智能家居的出现和普及已经势不可当,以移动互联网为核心的新技术正在重构智能家居。只有成为智能家居行业的先行者,才能抢占“风口”。 《智能家居:商业模式+案例分析+应用实战》紧扣“智能家居”,从3个方面进行专业、深层次的讲解。首要方面是基础篇,从智能家居的发展现状、产业链、商业分析、抢占入口等方面进行阐述,让读者对智能家居有个初步的认识;第二个方面是技术篇,从智能家居的控......一起来看看 《智能家居:商业模式+案例分析+应用实战》 这本书的介绍吧!

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具