Crust of Rust: functions, closures, and their traits
source link: https://www.youtube.com/watch?v=dHkzSZnYXmk
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
In this episode, we go over the differences between function items, function pointers, and closures, as well as how they interact with the Fn* traits. We also touch upon dynamically dispatched Fns and experimental const Fn bounds.
I've spliced out some audio issues that occurred on the live-stream, but hopefully it won't be too noticeable :p
0:00:00 Introduction 0:01:20 Rust for Rustaceans 0:02:48 Function items 0:06:26 Function pointers 0:11:24 Function traits 0:20:40 Closures 0:33:49 Non-static closures 0:38:50 dyn Fn 0:49:44 const Fn 1:00:28 for bounds 1:04:06 closures in async fn
Live version with chat: https://youtu.be/QVK4Ooo_PqM
Show lessShow more
50 Comments
Read more 2 weeks ago (edited)
Read more 1 week ago
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK