红联Linux门户
Linux帮助

Rust 1.18发布,Mozilla的编程语言

发布时间:2017-06-09 08:57:16来源:红联作者:baihuo
Rust 1.18 发布了。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。

Rust 1.18 增加了许多新特性,运行起来像这样:[code]#![windows_subsystem(console)]
#![windows_subsystem(windows)][/code]Rust的元组,枚举变量字段和结构体(没有#[repr])总是有一个未定义的布局。 我们已经开始自动重新排序,结构如下:[code]struct Suboptimal(u8, u16, u8);[/code]新 API

Child::try_wait is a non-blocking form of Child::wait.

HashMap::retain and HashSet::retain bring the retain API Vec has to these two hash data structures.

PeekMut::pop lets you pop the top element from a BinaryHeap after you’ve already peeked at it without needing to reorder the heap a second time.

TcpStream::peek, UdpSocket::peek, UdpSocket::peek_from let you peek at a stream or socket.

软件详情:https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1180-2017-06-08

下载地址:https://github.com/rust-lang/rust/archive/1.18.0.zip

来自:开源中国社区
文章评论

共有 0 条评论