~/talk

To impl or not to impl: The State of Existential Types in Rust

Talkat Rustikon 2026 · 2026-03-19..03-20· [compilers-and-language-design, typescript]
links:none on file
slides:none on file

Traces the concrete differences between argument-position impl Trait (a universal/generic-like, nameable-at-call-time type) and return-position impl Trait (an opaque existential the compiler picks), explains why return-position is zero-cost compared to dyn Trait, and lists practical workarounds: boxing, the nightly type_alias_impl_trait/return-type-notation and the define opaque rule. Covers stabilization status and blocker: the new trait solver is required before several of these ergonomics become stable, and shows which current APIs break or need alternate signatures.

AI-written summary · about

  1. 0:00Introduction
  2. 0:49Existential types history
  3. 3:40Return position input traits
  4. 6:48Naming problems
  5. 9:58Dynamic vs existential traits
  6. 12:45Dynamic traits limitations
  7. 15:32Stable support
  8. 16:56Impl trait in traits
  9. 19:46Input traits under the hood
  10. 21:51Solving naming problem
  11. 23:55Type alias impl trait
  12. 25:43Opaque types benefits
  13. 26:24Future of existential types
~/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.