Re:Classes Considered Harmful [pdf]
by lacampbell on Tuesday January 03, 2017 @10:43PM
(#13315495)
Right. I suppose in Rust you generally use variants and pattern matching when dynamic dispatching is required.
Re:Classes Considered Harmful [pdf]
by steveklabnik on Tuesday January 03, 2017 @10:55PM
(#13315550)
You could, but that requires that you know all of the variants ahead of time. The advantage of trait objects is that you don't have to.
It really just depends on what exactly you're trying to do.
But, given the case where you want dynamic dispatch, then in a sense, they are, yes.