Rust Trait Objects Are Just a Pointer and a Vtable
A trait object in Rust is a fat pointer. That statement is precise, not metaphorical. Every &dyn Trait, Box<dyn Trait>, and *const dyn Trait occupies two machine words: one word holds the address of t
dispatch-blog.hashnode.dev12 min read