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

栏目: 软件资讯 · 发布时间: 7年前

内容简介:Rust 1.26 版本发布。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。主要更新内容如下: 语言 现在 Closures 实现了 Copy and/or Clone Inclusive range 语法,如 for x in 0..=10 现...

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.

更多内容

下载地址:


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

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

"笨办法"学Python

"笨办法"学Python

肖 (Zed A.Shaw) / 王巍巍 / 人民邮电出版社 / 2014-11-1 / CNY 49.00

本书是一本Python入门书籍,适合对计算机了解不多,没有学过编程,但对编程感兴趣的读者学习使用。这本书以习题的方式引导读者一步一步学习编程,从简单的打印一直讲到完整项目的实现,让初学者从基础的编程技术入手,最终体验到软件开发的基本过程。 本书结构非常简单,共包括52个习题,其中26个覆盖了输入/输出、变量和函数三个主题,另外26个覆盖了一些比较高级的话题,如条件判断、循环、类和对象、代码测......一起来看看 《"笨办法"学Python》 这本书的介绍吧!

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

Markdown 在线编辑器

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

正则表达式在线测试

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具