3 ms·
What does `impl dyn` mean, exactly? That this only works for trait objects?
by Yoric 5y ago
What does `impl dyn` mean, exactly? That this only works for trait objects?
- ComputerGuru 5y agoThat it works for any type implementing the trait, via vtables. Otherwise, it’s a method specific to the particular type implementing the trait (a concrete implementation but distinct to the specific impl).