【Rust日报】 2019-09-27:async-std v0.99.7 released
- 2019 年 10 月 10 日
- 笔记
will 2d动作游戏更新
Read more
CloudFlare 增加 HTTP/3 and QUIC 支援
Read more
再大约六星期后就会有 Async/await 了
Read more
pin-project 符合人体工学的 pin 保护功能
范例
use pin_project::pin_project; use std::pin::Pin; #[pin_project] struct Struct<T, U> { #[pin] pinned: T, unpinned: U, } impl<T, U> Struct<T, U> { fn foo(self: Pin<&mut Self>) { let this = self.project(); let _: Pin<&mut T> = this.pinned; // Pinned reference to the field let _: &mut U = this.unpinned; // Normal reference to the field } }
Read more
async-std v0.99.7 released
增加了16个新的api
example future::join
use async_std::future; let a = future::ready(1); let b = future::ready(2); let c = future::ready(3); let f = future::join!(a, b, c); assert_eq!(f.await, (1, 2, 3));
Read more
Rust 求职专帖
From 日报小组 @Damody