YoVDO

Rust Closures and Disjoint Capturing - October 2021

Offered By: Rust via YouTube

Tags

Rust Courses Functional Programming Courses Memory Management Courses Closures Courses Type Inference Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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.

Syllabus

Intro
Rust Closures
Syntax
Closure Syntax
Single Line Syntax
Type Inference
Inline Closure
Function Closure
Behind the scenes
Lifetime
Fn Mute Example
Fn Once Example
Why Fn Once
Disjoint Capturing


Taught by

Rust

Related Courses

NodeJS Unleashed: From Basics to Brilliance
Udemy
Write a Mini Game in Scala
Coursera Project Network via Coursera
Scala Applied, Part 1
Udemy
TypeScript Tutorial
YouTube
Haskell for Imperative Programmers
YouTube