Rust: Closures

Описание к видео Rust: Closures

#rust #closure #function #capture

Inevitably, you will need to know about closures in Rust. Closures are anonymous functions that you hold on to as a variable or you can pass them in a parameter to another function. Let's dig into chapter 13 section 1 of the Rust Programming Book to learn more.

0:00 intro
0:51 Capturing the Environment with Closures
6:13 Capturing References or Moving Ownership
11:54 Moving Captured Values Out of Closures and the Fn Traits

Links

Chapter 13 Section 1, Closures
https://doc.rust-lang.org/book/ch13-0...

Комментарии

Информация по комментариям в разработке