will 2d動作遊戲更新
CloudFlare 增加 HTTP/3 and QUIC 支援
再大約六星期後就會有 Async/await 了
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
}
}
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));
Rust 求職專帖
From 日报小组 @Damody
日报订阅地址:
独立日报订阅地址:
社区学习交流平台订阅:
1
共 0 条评论, 1 页
评论区
写评论还没有评论