~/talk

Supercharging Your Code With Five Little-Known Attributes

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

Five concrete attributes are demonstrated and shown to work on real code: non_exhaustive forces wildcard matches so adding enum variants won’t break downstream crates; deprecated plus deny(deprecated) flags old APIs so calls to the legacy pizza_validator become compile warnings or errors; the third-party pre crate adds caller-side assurances to prevent the two_box null-pointer segfault and succeeds after reallocating on the Rust side; type_tag makes trait objects serializable across crates.

AI-written summary · about

  1. 0:00Intro
  2. 1:37Explanation
  3. 3:54Nonexhaustive
  4. 11:14ReadOnly
~/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.