~/talk

Type-Driven API Design in Rust

Talkat Strange Loop 2021 · 2021-09-30..10-02· [rust]
slides:none on file

Live-coding builds a working Rust progress-bar API that compiles and runs, not just slides: it reimplements a tqdm-like wrapper, uses extension traits to add methods to external iterator types, and encodes states as types with type-state so calling with_bound is only possible for exact_size_iterators. The talk shows concrete code, the actual trait bounds and where-clauses used, the compiler errors that prevent misuses, and a runnable prototype demonstrating bounded vs unbounded behavior.

AI-written summary · about

  1. 0:00Start
  2. 7:26Progress Bar
  3. 11:58Traits
  4. 12:14Iterator Trait
  5. 18:32Display the State of the Iterator
  6. 31:30Customize the Delimiters
  7. 33:38Type State
~/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.