~/talk

The Power of the "Where" Clause

Talkat Rust Latam 2019 · 2019-03-29..03-30· [rust]
slides:none on file

Explains exactly what a where clause can express: use Debug bound to make one print function compile for Point and Square, show that monomorphization generates separate functions per type, use associated type bounds to restrict Iterator::Item, require Send + 'static so a spawned thread safely takes ownership, build a trait-based state-machine traits system that forbids illegal transitions, and implement a storage trait where only declared models are queryable — examples compile and demonstrate refactor and API-evolution patterns.

AI-written summary · about

  1. 0:00Introduction
  2. 1:41The Where Clause
  3. 7:31Constraints
  4. 9:43Thread API
  5. 17:16Generic code
  6. 18:10Finding the right level
  7. 18:53Advanced examples
  8. 19:31Traits
  9. 20:16State Machines
  10. 20:46Transition to Loop
  11. 22:19Database Query
  12. 22:53The Problem
  13. 23:50Example
  14. 25:19Conclusion
~/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.