RANDOM_RUST_DEV Telegram 42
Если интересно, а где же система спавнящая кружочки, то ее нет.
Кружочки спавнятся в асинхронных тасках.

Макромагия нужна потому что Rust не может в асинк замыкания нормально.

|world: &mut World| async { use_world(world).await; }

не компилируется если потребовать такой баунд.

for<'a> F: FnMut(&'a mut World) -> Future + 'a

Хотя с async fn такое сработает
👍1🤯1



tgoop.com/random_rust_dev/42
Create:
Last Update:

Если интересно, а где же система спавнящая кружочки, то ее нет.
Кружочки спавнятся в асинхронных тасках.

Макромагия нужна потому что Rust не может в асинк замыкания нормально.

|world: &mut World| async { use_world(world).await; }

не компилируется если потребовать такой баунд.

for<'a> F: FnMut(&'a mut World) -> Future + 'a

Хотя с async fn такое сработает

BY Random Rust Dev




Share with your friend now:
tgoop.com/random_rust_dev/42

View MORE
Open in Telegram


Telegram News

Date: |

To delete a channel with over 1,000 subscribers, you need to contact user support 3How to create a Telegram channel? Telegram users themselves will be able to flag and report potentially false content. Your posting frequency depends on the topic of your channel. If you have a news channel, it’s OK to publish new content every day (or even every hour). For other industries, stick with 2-3 large posts a week. Unlimited number of subscribers per channel
from us


Telegram Random Rust Dev
FROM American