~/talk

Move Constructors: Is it Possible?

Talkat RustConf 2021 · 2021-09-14..09-15· [rust]
links:none on file
slides:none on file

Claims that C++-style move constructors and general constructors can be expressed in Rust by reinterpreting Pin guarantees, exposing constructor traits (new, clone_new, move_new), a slot/in_place API and a moveref type to initialize or relocate address-sensitive data without breaking safety. Implements this in the move-it crate with a working, move-respecting Vec prototype, enables return-by-move and collection resizing on stable Rust, and relies on macros to hide unsafe boilerplate.

AI-written summary · about

  1. 0:00Introduction
  2. 0:47Selfreferential Types
  3. 3:41Pins
  4. 5:58Unsafe Code
  5. 7:22C
  6. 11:05Return Slot
  7. 12:41Constructor Slots
  8. 15:05Copy Constructor
  9. 16:36MoveRef Constructor
  10. 17:31Copy Constructors
  11. 18:48Move Constructors
  12. 19:47Macros
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.