Crust of Rust: Functions, Closures, and Their Traits
Channel: Jon Gjengset
Date: 2021-10-08

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