网站首页
编程语言
数据库
系统相关
其他分享
编程问答
Lifetimes
2024-09-24
async Lifetimes
asyncLifetimes(JinQing’sColumn,Sep.,2024)From:https://rust-lang.github.io/async-book/03_async_await/01_chapter.htmlTheFuture’slifetimeisboundedbytheparameter’s.//Thisfunction:asyncfnborrow_x(x:&u8)->u8{*x}//Isequivalent