Sibbo to Rust Programming@lemmy.ml · 1 year agoAnnouncing async fn and return-position impl Trait in traitsblog.rust-lang.orgexternal-linkmessage-square2fedilinkarrow-up140arrow-down10cross-posted to: rust@programming.dev
arrow-up140arrow-down1external-linkAnnouncing async fn and return-position impl Trait in traitsblog.rust-lang.orgSibbo to Rust Programming@lemmy.ml · 1 year agomessage-square2fedilinkcross-posted to: rust@programming.dev
minus-squarepm_me_your_quackers@lemmy.worldlinkfedilinkarrow-up4arrow-down1·edit-21 year agotrait HttpService { async fn fetch(&self, url: Url) -> HtmlBody; // ^^^^^^^^ desugars to: // fn fetch(&self, url: Url) -> impl Future; } Man I’ve been waiting for this to be stabilized for a long time. So excited about it.
trait HttpService { async fn fetch(&self, url: Url) -> HtmlBody; // ^^^^^^^^ desugars to: // fn fetch(&self, url: Url) -> impl Future; }
Man I’ve been waiting for this to be stabilized for a long time. So excited about it.