Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Move Constructors in Rust: Possibilities and Applications

Rust via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore the concept of move constructors in Rust through this RustConf 2021 talk by Miguel Young de la Sota. Delve into the challenges of self-referential types, particularly async Futures, and their limitations in Rust. Learn how C++ handles safely-moveable self-referential types and discover a novel approach to bridging move constructors into Rust using Pin P guarantees. Understand how this technique can port all C++ constructors to Rust without compromising move-after-use protections, enabling return-by-move and collections support in stable Rust. Gain insights into the potential applications of this approach for zero-cost C++ FFI and expressing novel data structures in pure Rust. No prior C++ knowledge is required for this 24-minute presentation, which covers topics such as self-referential types, copy/move semantics, move-constructable types, macros, and future plans for this innovative concept.

Syllabus

Intro
Selfreferential Types
C
Copy
MoveRef
MoveReps
MoveConstructable Types
Macros
Future Plans
Thanks

Taught by

Rust

Reviews

Start your review of Move Constructors in Rust: Possibilities and Applications

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.