Главная
Study mode:
on
1
Intro
2
Rust Closures
3
Syntax
4
Closure Syntax
5
Single Line Syntax
6
Type Inference
7
Inline Closure
8
Function Closure
9
Behind the scenes
10
Lifetime
11
Fn Mute Example
12
Fn Once Example
13
Why Fn Once
14
Disjoint Capturing
Description:
Explore the world of Rust closures in this 35-minute conference talk from Rust Linz, October 2021. Begin with an introduction to closure functionality in Rust, ideal for programmers familiar with closures in other languages. Delve into the syntax of Rust closures, including single-line syntax and type inference. Examine inline closures and function closures, then peek behind the scenes to understand their implementation. Learn about closure lifetimes and explore examples of Fn, FnMut, and FnOnce. Discover the reasons behind FnOnce and conclude with an in-depth look at the new disjoint capturing feature introduced in Rust 2021, illustrated through a "fairy tale" code sample.

Rust Closures and Disjoint Capturing - October 2021

Rust
Add to list