u/kinoshitajonain r/rust • Recommends
On “Are functions as parameters good practice?”
111K subscribers • 38 videos on Hallway
Intermediate. Assumes working knowledge.
114K views5 years ago5 recommendations
Jon Gjengset explains the differences between function items, function pointers, and closures in Rust, and how they implement the Fn 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 Introduction Rust for Rustaceans Function items Function pointers Function traits Closures Non-static closures dyn Fn const Fn for bounds closures in async fn Live version with chat: youtu.be/QVK4Ooo_PqMWhat people say. Highly recommended by Rust developers as the definitive guide to understanding closures, Fn traits, and function pointers.
u/kinoshitajonain r/rust • Recommends
On “Are functions as parameters good practice?”
u/JonhooRust for Rustaceansin r/rust • Recommends
On “Uncovered Intermediate Topics”
u/HellsHeroin r/rust • Recommends
On “What's the difference between `FnOnce`, `Fn` and `FnMut`”
u/ritobanrcin r/rust • Recommends
On “Uncovered Intermediate Topics”
u/kinoshitajonain r/rust • Recommends
On “Fellow Rust enthusiasts: What "sucks" about Rust?”
u/mrfistulain r/rust • Recommends
On “I'm a writer working at a blockchain startup. looking to learn Rust so that I can communicate better with my teammates”