Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Yoric
· 5y ago · 0 comments
What does `impl dyn` mean, exactly? That this only works for trait objects?
Comments
[–]
ComputerGuru
5y ago
That 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).