Jump to content

Main public logs

Combined display of all available logs of JOHNWICK. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).

Logs
  • 17:57, 15 November 2025 PC talk contribs created page Type Erasure in Rust (Created page with "There’s a quiet kind of magic in Rust’s type system.
It’s strict, mathematical, and predictable — until you suddenly throw in a Box<dyn Trait>. And then? Everything changes.
The compiler stops knowing exactly what your type is, but still somehow knows how to use it safely. That trick — where Rust hides the actual type information but still lets you call methods — is called type erasure.
It’s what lets you write flexible code like this: fn draw_sh...")