Rust 1.18 发布了。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。
Rust 1.18 增加了许多新特性,运行起来像这样:
#![windows_subsystem(console)] #![windows_subsystem(windows)]
Rust的元组,枚举变量字段和结构体(没有#[repr])总是有一个未定义的布局。 我们已经开始自动重新排序,结构如下:
struct Suboptimal(u8, u16, u8);
新 API
Child::try_wait is a non-blocking form of Child::wait.
Child::try_wait
Child::wait
HashMap::retain and HashSet::retain bring the retain API Vec<T> has to these two hash data structures.
HashMap::retain
HashSet::retain
retain
Vec<T>
PeekMut::pop lets you pop the top element from a BinaryHeap<T> after you’ve already peeked at it without needing to reorder the heap a second time.
PeekMut::pop
BinaryHeap<T>
TcpStream::peek, UdpSocket::peek, UdpSocket::peek_from let you peek at a stream or socket.
TcpStream::peek
UdpSocket::peek
UdpSocket::peek_from
更多内容点此查看,或查看发布说明。
下载地址:
Source code (zip)
Source code (tar.gz)
>>>【评论有礼】6月6日-30日评论每日更新的“新闻资讯和软件更新资讯”,评论点赞数超过 20 的可登上每周更新的“源资讯”和“软件周刊”两大栏目,点赞数超过 50 的还将获得 5 活跃积分奖励和开源中国定制好礼。详情
评论删除后,数据将无法恢复
Rust 1.18 发布,Mozilla 的编程语言
Rust 1.18 发布了。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。
Rust 1.18 增加了许多新特性,运行起来像这样:
Rust的元组,枚举变量字段和结构体(没有#[repr])总是有一个未定义的布局。 我们已经开始自动重新排序,结构如下:
新 API
Child::try_wait
is a non-blocking form ofChild::wait
.HashMap::retain
andHashSet::retain
bring theretain
APIVec<T>
has to these two hash data structures.PeekMut::pop
lets you pop the top element from aBinaryHeap<T>
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.更多内容点此查看,或查看发布说明。
下载地址:
Source code (zip)
Source code (tar.gz)
>>>【评论有礼】6月6日-30日评论每日更新的“新闻资讯和软件更新资讯”,评论点赞数超过 20 的可登上每周更新的“源资讯”和“软件周刊”两大栏目,点赞数超过 50 的还将获得 5 活跃积分奖励和开源中国定制好礼。详情