Crust of Rust: Functions, Closures, and Their Traits
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
Видео Crust of Rust: Functions, Closures, and Their Traits канала Jon Gjengset
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
Видео Crust of Rust: Functions, Closures, and Their Traits канала Jon Gjengset
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Lock-Free to Wait-Free Simulation in Rust (part 2)](https://i.ytimg.com/vi/tNzCj8691LE/default.jpg)
![Building an asynchronous ZooKeeper client in Rust (part 3)](https://i.ytimg.com/vi/1ADDeB9rqAI/default.jpg)
![Porting Java's ConcurrentHashMap to Rust (part 3)](https://i.ytimg.com/vi/_z4fZkmlvrs/default.jpg)
![Building an asynchronous ZooKeeper client in Rust](https://i.ytimg.com/vi/mMuk8Rn9HBg/default.jpg)
![Building an asynchronous ZooKeeper client in Rust (part 2)](https://i.ytimg.com/vi/0-Fsu-aM0_A/default.jpg)
![Q&A August 2020](https://i.ytimg.com/vi/AUEbaWaEeF4/default.jpg)
![Rust "did you know": the name and logo](https://i.ytimg.com/vi/C9he5SmNkyE/default.jpg)
![Building a ranked-choice voting site for new stream ideas](https://i.ytimg.com/vi/8LSNN-Y9Ftg/default.jpg)
![Why are my videos so damn long‽](https://i.ytimg.com/vi/KPbrI3xWdCg/default.jpg)
![Open Source Maintenance, 2023-08-06](https://i.ytimg.com/vi/ZiFhlvWXdzg/default.jpg)
![The Unsafe Chronicles: Exhibit A: Aliasing Boxes](https://i.ytimg.com/vi/EY7Wi9fV5bk/default.jpg)
![Rust "did you know": derive isn't perfect](https://i.ytimg.com/vi/2tEgucF8O1A/default.jpg)
![Supply Chain Security — MIT 6.5660 Computer Security guest lecture](https://i.ytimg.com/vi/kCj4YBZ0Og8/default.jpg)
![Thesis: Partial State in Dataflow-Based Materialized Views](https://i.ytimg.com/vi/GctxvSPIfr8/default.jpg)
![Porting Java's ConcurrentHashMap to Rust (part 2)](https://i.ytimg.com/vi/018GXMjfdqg/default.jpg)
![Q&A January 2021 (now with cat)](https://i.ytimg.com/vi/hmMbHB0zYrM/default.jpg)
![Implementing TCP in Rust (part 3)](https://i.ytimg.com/vi/8GE6ltLRJA4/default.jpg)
![Crust of Rust: Channels](https://i.ytimg.com/vi/b4mS5UPHh20/default.jpg)
![Open Source Maintenance, 2023-08-25](https://i.ytimg.com/vi/RFm3CSkoPGQ/default.jpg)
![Crust of Rust: Lifetime Annotations](https://i.ytimg.com/vi/rAl-9HwD858/default.jpg)
![Implementing TCP in Rust (part 1)](https://i.ytimg.com/vi/bzja9fQWzdA/default.jpg)